export interface EffectSchema { readonly Type: A; readonly Encoded: I; readonly Context: R; readonly ast: unknown; readonly annotations: unknown; } export interface EffectParseError { readonly _tag: "ParseError"; readonly issue: unknown; message: string; } export type EffectParseResult = { readonly _tag: "Right"; readonly right: A; } | { readonly _tag: "Left"; readonly left: EffectParseError; }; export declare function isEffectSchema(value: unknown): value is EffectSchema; export declare function isEffectParseError(error: unknown): error is EffectParseError; export declare function isEffectRight(result: EffectParseResult): result is { readonly _tag: "Right"; readonly right: A; }; export declare function isEffectLeft(result: EffectParseResult): result is { readonly _tag: "Left"; readonly left: EffectParseError; }; export type InferEffectSchema = S["Type"]; export type InferEffectSchemaEncoded = S["Encoded"]; export interface EffectDecodeOptions { onError?: (error: EffectParseError) => void; } export interface EffectSchemaAdapter { decodeUnknownSync: (schema: EffectSchema, data: unknown) => A; decodeUnknownEither: (schema: EffectSchema, data: unknown) => EffectParseResult; formatError: (error: EffectParseError) => string; } export declare function registerEffectSchemaAdapter(adapter: EffectSchemaAdapter): void; export declare function unregisterEffectSchemaAdapter(): void; export declare function hasEffectSchemaAdapter(): boolean; export declare function getEffectSchemaAdapter(): EffectSchemaAdapter; export declare function safeDecodeEffectSchema(schema: EffectSchema, data: unknown): { success: true; data: A; } | { success: false; error: EffectParseError; }; export declare function getEffectErrorMessage(error: EffectParseError): string; export interface UnifiedSchema { readonly _tag: "zod" | "effect"; parse(data: unknown): T; safeParse(data: unknown): { success: true; data: T; } | { success: false; error: Error; }; } export declare function wrapEffectSchema(schema: EffectSchema): UnifiedSchema; //# sourceMappingURL=effectSchemaCompat.d.ts.map