import { Effect } from "effect"; import { ValidationError } from "../errors/crud-errors.js"; import type { MigrationError } from "../errors/migration-errors.js"; import { type SourceError } from "../errors/source-errors.js"; import { SerializationError, StorageError, type UnsupportedFormatError } from "../errors/storage-errors.js"; import { SerializerRegistry } from "../serializers/serializer-service.js"; import type { HasId } from "./derived-id.js"; import { type OriginIndex } from "./origin-index.js"; import { type NormalizedSourceConfig } from "./source-config.js"; import { StorageAdapter } from "./storage-service.js"; export interface LoadedDocumentSources { readonly collections: Record>; readonly origins: OriginIndex; readonly documents: ReadonlyArray; } export interface SavedDocumentSource { readonly origins: OriginIndex; readonly documents: ReadonlyArray; } export interface SaveDocumentSourceInput { readonly config: NormalizedSourceConfig; readonly sourceId: string; readonly collections: Record>; readonly origins: OriginIndex; readonly documents: ReadonlyArray; } export interface LoadedDocument { readonly sourceId: string; readonly path: string; readonly data: Record; } export declare const loadDocumentSources: (config: NormalizedSourceConfig) => Effect.Effect; export declare const saveDocumentSource: (input: SaveDocumentSourceInput) => Effect.Effect; //# sourceMappingURL=document-source.d.ts.map