import { Schema } from 'effect'; import type { ESchemaDefinition } from '../../domain/index.js'; export interface RestoredESchemaVersion { readonly version: string; readonly encoded: Schema.Top; readonly decoded: Schema.Top; } export interface RestoredESchema { readonly identity: string; readonly kind: ESchemaDefinition['kind']; readonly idField: string | null; readonly versions: readonly RestoredESchemaVersion[]; } /** * Rebuilds live, working schemas from a captured ESchemaSnapshot's * definitions, using Effect's own representation round trip. A composed * field resolves to the referenced identity's own latest restored version — * restore approximates structure only; migration behavior stays owned by * eschema, which needs the original source to run it. */ export declare function restoreESchemaDefinitions(definitions: readonly ESchemaDefinition[]): readonly RestoredESchema[]; //# sourceMappingURL=eschema-restore.d.ts.map