export declare const CORS_MIDDLEWARE_PRIORITY: number; export type CorsOrigin = boolean | string | RegExp | (string | RegExp)[]; /** `web.cors`, with the options and defaults of the `cors` package of express. */ export interface CorsOptions { /** * `'*'` (default): any origin; a string: that origin; `true`: the origin of the request; a RegExp or a list: * the origin of the request when it matches; `false`: no CORS headers. */ origin?: CorsOrigin | ((origin: string | undefined, callback: (err: Error | null, origin?: CorsOrigin) => void) => void); /** Default `GET,HEAD,PUT,PATCH,POST,DELETE`. */ methods?: string | string[]; /** Default: the headers the preflight request asks for. */ allowedHeaders?: string | string[]; /** Alias of `allowedHeaders`. */ headers?: string | string[]; exposedHeaders?: string | string[]; credentials?: boolean; /** Seconds. */ maxAge?: number | string; /** Pass preflight (OPTIONS) requests on instead of answering them. Default false. */ preflightContinue?: boolean; /** Default 204. */ optionsSuccessStatus?: number; }