UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 896 B
/** Exact document and target authority retained by one nonce host. */ export interface PreviewMessageAuthority { /** Actual loopback UI origin, never caller-supplied. */ origin: string; /** Exact registered story identity. */ storyId: string; /** Exact scoped variant identity. */ variantId: string; /** Random active host capability. */ nonce: string; /** Captured project generation. */ epoch: string; /** False after this document loses its lease. */ active: boolean; } /** Pure guard reused by generated host script and focused boundary tests. */ export declare function matchesPreviewMessage(event: { source: unknown; origin: string; data?: any; }, frame: unknown, authority: PreviewMessageAuthority, identity: { nonce: string; epoch: string; }, types?: readonly string[]): boolean; //# sourceMappingURL=readiness.d.ts.map