import type { Context, Middleware, Next } from '../types.js'; export interface CorsOptions { origin?: string | string[] | boolean; methods?: string[]; allowedHeaders?: string[]; exposedHeaders?: string[]; credentials?: boolean; maxAge?: number; } export declare class Cors implements Middleware { private options; constructor(options?: CorsOptions); handle(ctx: Context, next: Next): Promise; private resolveOrigin; } export declare function cors(options?: CorsOptions): Cors; //# sourceMappingURL=cors.d.ts.map