import type { EventCodecOptions, IdeaEventReduction, IdeaEventState } from "../event-codec/index.ts"; import type { BusinessFileSystem } from "../../business/shared/business-types.ts"; interface ProjectionEntry { mode: string; type: string; object: string; size: number | null; name: string; } interface ProjectionFileSystem extends Pick { snapshotEntry(path: string): ProjectionEntry | null | undefined; snapshotEntries(path: string): ProjectionEntry[]; snapshotFile(path: string): Promise; } interface ProjectionPaths { eventsPath: string; } export declare class ProjectedReductionError extends Error { result: Extract; constructor(result: Extract); } export declare function projectEventSnapshot(root: string, id: string, paths: ProjectionPaths, options: EventCodecOptions & { objectIdLength: number; }, filesystem: ProjectionFileSystem): Promise<{ digest: string; length: number; state: IdeaEventState; bytes: Buffer; entry: ProjectionEntry; }>; export {}; //# sourceMappingURL=projection.d.ts.map