import express from 'express'; export interface CorsConfig { /** Base URL for web application (e.g., 'example.com' or 'https://example.com') */ webBaseUrl?: string; /** Allow any localhost origin (http://localhost:*) for local development */ allowLocalhost?: boolean; /** * @deprecated Use `allowLocalhost` instead. This field controls both test endpoints and localhost CORS. * When `allowLocalhost` is set, it takes precedence for CORS behavior. */ enableTestEndpoints?: boolean; } export declare function corsMiddleware(config?: CorsConfig): (req: express.Request, res: express.Response, next: express.NextFunction) => void; //# sourceMappingURL=corsMiddleware.d.ts.map