import { Middleware } from '../middleware'; import { Context } from '../context'; import { CorsOptions, CorsOrigin } from './cors-protocol'; /** CORS headers from `web.cors`, with the options and defaults of the `cors` package of express. */ export declare class CorsMiddleware implements Middleware { protected readonly options?: CorsOptions; protected readonly endpoint?: string; protected methods: string; protected allowedHeaders?: string; protected exposedHeaders?: string; protected maxAge?: string; protected init(): void; handle(ctx: Context, next: () => Promise): Promise; protected resolveOrigin(requestOrigin: string | undefined): Promise | CorsOrigin; protected setOrigin(response: any, origin: CorsOrigin, requestOrigin: string | undefined): void; protected setAllowedHeaders(response: any, requested: string | undefined): void; readonly priority: number; } //# sourceMappingURL=cors-middleware.d.ts.map