/** * Cross-Origin Isolation (COI) preflight. * * SharedArrayBuffer + threaded WebAssembly requires the document to be * cross-origin isolated (COOP: same-origin + COEP: require-corp). This module * provides a small synchronous probe and an optional async fetch-based * verification that hosts can run before booting emception. */ export interface COICheck { name: string; ok: boolean; detail?: string; } export interface COIReport { crossOriginIsolated: boolean; sharedArrayBuffer: boolean; worker: boolean; offscreenCanvas: boolean; checks: COICheck[]; ok: boolean; } /** * Synchronous COI probe. Safe to run in main thread, worker, or SSR (returns * a report with all flags false when DOM globals are missing). */ export declare function probeCOI(): COIReport; /** * Async verification: probes a same-origin URL and inspects the response * headers to confirm COOP/COEP are actually being served. Useful for catching * dev environments where headers are missing but `crossOriginIsolated` is * still true thanks to a service worker. */ export declare function verifyHeaders(url?: string): Promise; export declare function formatCOIReport(report: COIReport): string; //# sourceMappingURL=index.d.ts.map