import type { HistoireSourceDescriptor } from '@histoire/protocol'; import type { HistoireSessionNotification } from '@histoire/sdk/internal'; import type { EmbedSourceOptions } from './types.js'; /** Owns one dev channel subscription and ignores late documents after teardown. */ export declare function createEmbedSubscriptions(id: string, initial: HistoireSourceDescriptor, subscribe: EmbedSourceOptions['subscribe'], publish: (descriptor: HistoireSourceDescriptor) => void): { /** Observes future coherent source revisions without invoking listener implicitly. */ subscribe(listener: (event: HistoireSessionNotification) => void): () => void; /** Marks lifetime inactive before removing listeners, suppressing late HMR callbacks. */ close(): void; };