import * as core from "../core/index.cjs"; import { type ZodError } from "./errors.cjs"; export type ZodSafeParseResult = ZodSafeParseSuccess | ZodSafeParseError; export type ZodSafeParseSuccess = { success: true; data: T; error?: never; }; export type ZodSafeParseError = { success: false; data?: never; error: ZodError; }; export declare const parse: (schema: T, value: unknown, _ctx?: core.ParseContext, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClass; }) => core.output; export declare const parseAsync: (schema: T, value: unknown, _ctx?: core.ParseContext, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClass; }) => Promise>; export declare const safeParse: (schema: T, value: unknown, _ctx?: core.ParseContext) => ZodSafeParseResult>; export declare const safeParseAsync: (schema: T, value: unknown, _ctx?: core.ParseContext) => Promise>>; export declare const encode: (schema: T, value: core.output, _ctx?: core.ParseContext) => core.input; export declare const decode: (schema: T, value: core.input, _ctx?: core.ParseContext) => core.output; export declare const encodeAsync: (schema: T, value: core.output, _ctx?: core.ParseContext) => Promise>; export declare const decodeAsync: (schema: T, value: core.input, _ctx?: core.ParseContext) => Promise>; export declare const safeEncode: (schema: T, value: core.output, _ctx?: core.ParseContext) => ZodSafeParseResult>; export declare const safeDecode: (schema: T, value: core.input, _ctx?: core.ParseContext) => ZodSafeParseResult>; export declare const safeEncodeAsync: (schema: T, value: core.output, _ctx?: core.ParseContext) => Promise>>; export declare const safeDecodeAsync: (schema: T, value: core.input, _ctx?: core.ParseContext) => Promise>>;