UNPKG

histoire

Version:

A fast story book powered by Vite

22 lines • 950 B
import type { PreviewSessionOptions } from '../runtime/browser/session.js'; import type { ProjectServices } from './internal.js'; import type { HistoireCaptureOptions } from './types.js'; /** Select one source and retain its generation and execution lane. */ export declare function acquireCaptureSource(services: ProjectServices, options: HistoireCaptureOptions, selected: 'dev' | 'preview'): { session: PreviewSessionOptions; execution: { readonly available: boolean; readonly pendingCount: number; enqueue<T>(task: import("../runtime/execution-types.js").ExecutionTask<T>): import("../runtime/execution-types.js").ExecutionHandle<T>; cancelAll: () => Promise<void>; quarantine(): void; close(): Promise<void>; }; isActive: () => boolean; identity: { sourceId: string; epoch: string; revision: string; }; }; //# sourceMappingURL=capture-source.d.ts.map