export type SourceRecordOrigin = { readonly sourceId: string; readonly path: string; readonly collection: string; readonly id: string; }; declare const SourceConfigError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "SourceConfigError"; } & Readonly; export declare class SourceConfigError extends SourceConfigError_base<{ readonly message: string; readonly sourceId?: string; readonly collection?: string; readonly path?: string; }> { } declare const UnknownCollectionError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "UnknownCollectionError"; } & Readonly; export declare class UnknownCollectionError extends UnknownCollectionError_base<{ readonly sourceId: string; readonly path: string; readonly collection: string; readonly message: string; }> { } declare const DuplicateRecordError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "DuplicateRecordError"; } & Readonly; export declare class DuplicateRecordError extends DuplicateRecordError_base<{ readonly collection: string; readonly id: string; readonly first: SourceRecordOrigin; readonly duplicate: SourceRecordOrigin; readonly message: string; }> { } declare const DuplicatePhysicalFileError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "DuplicatePhysicalFileError"; } & Readonly; export declare class DuplicatePhysicalFileError extends DuplicatePhysicalFileError_base<{ readonly sourceId: string; readonly path: string; readonly message: string; }> { } declare const InvalidDocumentSourceError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "InvalidDocumentSourceError"; } & Readonly; export declare class InvalidDocumentSourceError extends InvalidDocumentSourceError_base<{ readonly sourceId: string; readonly path: string; readonly message: string; readonly collection?: string; readonly id?: string; }> { } declare const DocumentGraphSourceError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "DocumentGraphSourceError"; } & Readonly; /** * Failure loading or building a `documentGraph` source. `kind` distinguishes a * transform that returned a `Result` failure (`transform-failure`) from a * transform that threw unexpectedly (`transform-defect`) and from structural * load/validation failures. */ export declare class DocumentGraphSourceError extends DocumentGraphSourceError_base<{ readonly sourceId: string; readonly path: string; readonly message: string; readonly kind: "missing-root" | "unsupported-extension" | "deserialize" | "transform-failure" | "transform-defect" | "non-object" | "unknown-collection" | "validation" | "migration"; readonly collection?: string; readonly recordId?: string; readonly contributingPaths?: ReadonlyArray; readonly cause?: unknown; }> { } export type SourceError = SourceConfigError | UnknownCollectionError | DuplicateRecordError | DuplicatePhysicalFileError | InvalidDocumentSourceError | DocumentGraphSourceError; export {}; //# sourceMappingURL=source-errors.d.ts.map