import type { SinkWriter, StreamFrame, TokenStreamSink } from './spi/token-stream-sink.js';
/**
 * The default {@link TokenStreamSink}: buffers typed frames per run in-process so a reconnecting
 * subscriber replays everything so far, then follows live until the run ends. Good for a single
 * replica; a multi-replica deployment needs a shared (Redis) sink so any pod can serve any run's
 * stream. Identical (frame-for-frame) to the `InMemoryTokenStreamSink` shipped from `./testing`.
 *
 * A run's buffer is dropped an hour after its last write, ended or not, so a long-lived process does
 * not keep every stream it ever served. The timers are `unref`'d: they never hold the process open.
 */
export declare class InProcessTokenStreamSink implements TokenStreamSink {
    private readonly runs;
    private buffer;
    /**
     * One timer per run, re-armed for whatever is left of the window when it fires early, so a write
     * only stamps `touchedAt` instead of resetting a timer per token.
     */
    private scheduleExpiry;
    private drop;
    private wake;
    open(runId: string): SinkWriter;
    subscribe(runId: string): AsyncIterable<StreamFrame>;
    private follow;
    has(runId: string): boolean;
    close(runId: string): void;
}
//# sourceMappingURL=in-process-sink.d.ts.map