import { Effect } from 'effect'; import type { ESchemaDescriptor, ValueDraftDefinition, ValueEnvelopeEncoded, ValueEvolution, ValueSchema, ValueSchemaDecoded } from '../../domain/schema-model/index.js'; import { ESchemaError } from '../../domain/eschema-error/index.js'; export declare function makeValueSchemaRuntime(input: { readonly owner: object; readonly name: string; readonly latestVersion: TVersion; readonly evolutions: readonly ValueEvolution[]; }): { readonly schema: () => TLatest; readonly decode: (value: unknown) => Effect.Effect, ESchemaError>; readonly encode: (value: ValueSchemaDecoded) => Effect.Effect, ESchemaError>; readonly descriptor: () => ESchemaDescriptor; }; /** * Wraps the base value runtime with a draft overlay, mirroring * `makeDraftedObjectSchemaRuntime`: decode folds through published * migrations then the draft's forward migration; encode applies the draft's * backward migration first, then encodes against the last published schema. */ export declare function makeDraftedValueSchemaRuntime(input: { readonly owner: object; readonly name: string; readonly latestVersion: TVersion; readonly evolutions: readonly ValueEvolution[]; readonly draft: ValueDraftDefinition; }): { readonly schema: () => TLatest; readonly decode: (value: unknown) => Effect.Effect, ESchemaError>; readonly encode: (value: ValueSchemaDecoded) => Effect.Effect, ESchemaError>; readonly descriptor: () => ESchemaDescriptor; }; //# sourceMappingURL=value-schema-runtime.d.ts.map