Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.4 KiB
Text
33 lines
1.4 KiB
Text
import type { HttpHandler } from "../httpHandler";
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface HttpHandlerExtensionConfiguration<HandlerConfig extends object = {}> {
|
|
setHttpHandler(handler: HttpHandler<HandlerConfig>): void;
|
|
httpHandler(): HttpHandler<HandlerConfig>;
|
|
updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void;
|
|
httpHandlerConfigs(): HandlerConfig;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export type HttpHandlerExtensionConfigType<HandlerConfig extends object = {}> = Partial<{
|
|
httpHandler: HttpHandler<HandlerConfig>;
|
|
}>;
|
|
/**
|
|
* @internal
|
|
*
|
|
* Helper function to resolve default extension configuration from runtime config
|
|
*/
|
|
export declare const getHttpHandlerExtensionConfiguration: <HandlerConfig extends object = {}>(runtimeConfig: HttpHandlerExtensionConfigType<HandlerConfig>) => {
|
|
setHttpHandler(handler: HttpHandler<HandlerConfig>): void;
|
|
httpHandler(): HttpHandler<HandlerConfig>;
|
|
updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void;
|
|
httpHandlerConfigs(): HandlerConfig;
|
|
};
|
|
/**
|
|
* @internal
|
|
*
|
|
* Helper function to resolve runtime config from default extension configuration
|
|
*/
|
|
export declare const resolveHttpHandlerRuntimeConfig: <HandlerConfig extends object = {}>(httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration<HandlerConfig>) => HttpHandlerExtensionConfigType<HandlerConfig>;
|