/** * CORS for browser clients hitting a remote room node (TurtleDB Cloud C0 / deploy). * * Enabled when `TRELLIS_CORS_ORIGINS` is set, or when the server uses an API key * (typical deployed Sprite). Set `TRELLIS_CORS_ORIGINS=*` to allow any origin. * * @module trellis/server */ export declare function corsEnabledForConfig(apiKey?: string): boolean; export declare function corsHeaders(req: Request): Record; export declare function withCors(req: Request, res: Response): Response; export declare function corsPreflightResponse(req: Request): Response; //# sourceMappingURL=cors.d.ts.map