import { ContractOutput, ContractSchema, Decoder, LegacyParser, ValidationIssue } from "../contracts/contract.mjs"; import { Effect, Schema } from "effect"; //#region src/modules/effect/schema.d.ts export declare class ContractValidationError { readonly issues: readonly ValidationIssue[]; readonly _tag = "ContractValidationError"; constructor(issues: readonly ValidationIssue[]); } export interface EffectDecoder extends Decoder> { readonly kind: 'effect-contract'; } /** Explicit custom decoders preserve their exact typed error and service channels. */ export declare function effectContract(decode: (value: unknown) => Effect.Effect): EffectDecoder; /** Encoding requirements remain independent of the decoder's requirements. */ export declare function effectSchema(schema: S): { types?: { readonly input: S["Encoded"]; readonly output: S["Type"]; } | undefined; decode: (value: unknown) => Effect.Effect; kind: 'effect-contract'; schema: S; encode: (input: S["Type"], options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect; }; /** The service-free bridge cannot erase decoder requirements. */ export declare function effectStandardSchema>(schema: S): import("effect/StandardSchema").StandardSchemaV1 & S; export type ContractDecoderError = S extends EffectDecoder ? Error : S extends LegacyParser ? never : S extends ContractSchema ? ContractValidationError : never; export type ContractDecoderRequirements = S extends EffectDecoder ? Requirements : never; /** Decode input, fresh results, and final replay values within the current Effect scope. */ export declare function decodeEffectContract(schema: S, value: unknown): Effect.Effect, ContractDecoderError, ContractDecoderRequirements>; //#endregion //# sourceMappingURL=schema.d.mts.map