import { MiddlewareHandler } from './types.ts'; /** * Options for configuring CORS (Cross-Origin Resource Sharing) middleware. * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS MDN CORS documentation} */ type CORSOptions = { /** Configures the Access-Control-Allow-Origin CORS header */ origin: string | string[]; /** Configures the Access-Control-Allow-Methods CORS header */ allowMethods?: string[]; /** Configures the Access-Control-Allow-Headers CORS header */ allowHeaders?: string[]; /** Configures the Access-Control-Max-Age CORS header */ maxAge?: number; /** Configures the Access-Control-Allow-Credentials CORS header */ credentials?: boolean; /** Configures the Access-Control-Expose-Headers CORS header */ exposeHeaders?: string[] | boolean; /** Configures browser and CDN caching duration for CORS preflight requests in seconds. Set to 0 to disable. */ cacheAge?: number; }; export declare const cors: (options?: CORSOptions) => MiddlewareHandler; export {}; //# sourceMappingURL=cors.d.ts.map