import type { Handler } from "./types"; export type CorsOrigin = "*" | string | string[] | ((origin: string, request: Request) => boolean | string | Promise); export interface CorsOptions { origin?: CorsOrigin; methods?: string[]; allowedHeaders?: string[]; exposedHeaders?: string[]; credentials?: boolean; maxAge?: number; preflightStatus?: number; } export declare function cors(handler: Handler, options?: CorsOptions): Handler; //# sourceMappingURL=cors.d.ts.map