import type { RequestEvent } from "../core/event_request.js";
import type { Handler } from "../tools/hook/hook.js";
export declare const DefaultCorsMiddlewareId = "pbCors";
export declare const DefaultCorsMiddlewarePriority: number;
export type CORSConfig = {
    AllowOrigins?: string[];
    AllowOriginFunc?: ((origin: string) => boolean | Promise<boolean>) | null;
    AllowMethods?: string[];
    AllowHeaders?: string[];
    AllowCredentials?: boolean;
    UnsafeWildcardOriginWithAllowCredentials?: boolean;
    ExposeHeaders?: string[];
    MaxAge?: number;
};
export declare const DefaultCORSConfig: Required<Pick<CORSConfig, "AllowOrigins" | "AllowMethods" | "AllowHeaders" | "AllowCredentials" | "ExposeHeaders" | "MaxAge">>;
export declare function CORS(config: CORSConfig): Handler<RequestEvent>;
