import { IncomingMessage, ServerResponse } from 'node:http'; import { OrgInfo, WebAppManifest } from '../app/index'; /** * URL parameter to trigger health check response */ export declare const WEBAPP_HEALTH_CHECK_PARAM = "sfProxyHealthCheck"; /** * Response header indicating the proxy is active */ export declare const WEBAPP_PROXY_HEADER = "X-Salesforce-WebApp-Proxy"; /** * Configuration options for the WebApp proxy handler */ export interface ProxyOptions { debug?: boolean; onTokenRefresh?: (updatedOrgInfo: OrgInfo) => void; } /** * Proxy handler function type */ export type ProxyHandler = (req: IncomingMessage, res: ServerResponse, next?: () => void) => Promise; /** * Create proxy request handler * * @param manifest - WebApp manifest configuration * @param orgInfo - Salesforce org information * @param target - Target URL for dev server forwarding (optional) * @param basePath - Base path for routing (optional) * @param options - Proxy configuration options * @returns Async request handler function for Node.js HTTP server */ export declare function createProxyHandler(manifest: WebAppManifest, orgInfo?: OrgInfo, target?: string, basePath?: string, options?: ProxyOptions): ProxyHandler; /** * Inject Live Preview script into HTML content. * Used by the Vite plugin's transformIndexHtml hook and the standalone proxy's sendResponse. */ export declare function injectLivePreviewScript(html: string): string; //# sourceMappingURL=handler.d.ts.map