/**
 * RuntimePatchCollector — adapter wrapping WarpRuntime's patch loading internals.
 *
 * Lives at the infrastructure boundary. Domain code (MaterializeController)
 * programs against PatchCollector; this adapter provides the runtime backing.
 */
import PatchCollector, { type PatchWithSha, type CheckpointData } from '../capabilities/PatchCollector.ts';
import type WarpState from '../services/state/WarpState.ts';
type RuntimeCheckpointData = {
    state: WarpState;
    frontier: Map<string, string>;
    stateHash: string;
    schema: number;
    provenanceIndex?: object | null;
    indexShardOids?: Record<string, string> | null | undefined;
};
type RuntimePatchCollectorHost = {
    discoverWriters(): Promise<string[]>;
    _loadWriterPatches(writerId: string): Promise<PatchWithSha[]>;
    _loadPatchChainFromSha(toSha: string, fromSha?: string | null): Promise<PatchWithSha[]>;
    _loadLatestCheckpoint(): Promise<RuntimeCheckpointData | null>;
    _loadPatchesSince(checkpoint: RuntimeCheckpointData): Promise<PatchWithSha[]>;
    getFrontier(): Promise<Map<string, string>>;
};
export default class RuntimePatchCollector extends PatchCollector {
    private readonly _runtime;
    constructor(runtime: RuntimePatchCollectorHost);
    discoverWriters(): Promise<string[]>;
    loadWriterPatches(writerId: string): Promise<PatchWithSha[]>;
    streamForFrontier(frontier: Map<string, string>, ceiling: number | null): AsyncIterable<PatchWithSha>;
    loadCheckpoint(): Promise<CheckpointData | null>;
    loadPatchesSince(checkpoint: CheckpointData): Promise<PatchWithSha[]>;
    loadPatchChain(toSha: string, fromSha?: string | null): Promise<PatchWithSha[]>;
    getFrontier(): Promise<Map<string, string>>;
}
export {};
