/** * Shared CORS origin-checking logic for the TinaCMS dev server. * * By default only localhost / 127.0.0.1 / [::1] (any port) are allowed. * Users can extend this via `server.allowedOrigins` in their tina config. * The special keyword `'private'` expands to all RFC 1918 private-network * IP ranges (10.x, 172.16-31.x, 192.168.x) — useful for WSL2, Docker * bridge networks, etc. */ /** * Build a CORS `origin` callback compatible with the `cors` npm package. */ export declare function buildCorsOriginCheck(allowedOrigins?: (string | RegExp)[]): (origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void;