/opt/canhelp/node_modules/better-auth/node_modules/zod/v4/classic
Edit: /opt/canhelp/node_modules/better-auth/node_modules/zod/v4/classic/parse.d.ts (2509B)
import * as core from "../core/index.js";
import { type ZodError } from "./errors.js";
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>>;