UNPKG

histoire

Version:

A fast story book powered by Vite

28 lines • 1.21 kB
import type { HistoireAccessibilityInspection } from '@histoire/protocol'; /** Projection returned by the in-document scanner before source metadata is added. */ export type AccessibilityProjection = Omit<HistoireAccessibilityInspection, 'mode' | 'owner' | 'observedAt' | 'durationMs' | 'inspection'>; /** Correlated isolated request sent only to the exact ready sandbox document. */ export interface AccessibilityRequest { /** Request identity. */ id: string; /** Private host nonce and source epoch. */ nonce: string; epoch: string; /** Captured document and target. */ documentId: string; storyId: string; variantId: string; /** Existing runtime transport message identities. */ requestType: string; resultType: string; /** Optional query within the exact story root. */ selector?: string; /** Remaining browser session deadline. */ timeoutMs: number; } /** Self-contained function serialized by Playwright into the owned host page. */ export declare function requestPreviewAccessibility(options: AccessibilityRequest): Promise<{ result?: AccessibilityProjection; error?: string; }>; //# sourceMappingURL=accessibility-request.d.ts.map