import type { HistoireTestCollectionResult, HistoireTestRunSummary } from '@histoire/protocol'; import type { HistoireRequestCapture } from '@histoire/sdk/internal'; import type { createRuntimeRequests } from './runtime-requests.js'; /** Existing preview runner has no cooperative body abort; cancellation retires actual document. */ export declare function createEmbedPreviewTests(requests: ReturnType, retire: (capture: HistoireRequestCapture) => void, runIsolated?: (capture: HistoireRequestCapture) => Promise): { /** Selection/document and runtime deadlines remain owned by existing sandbox adapter. */ request(command: 'tests.collect' | 'tests.run', capture: HistoireRequestCapture): Promise; };