import type { z } from "zod"; /** * Parse a value using the zod schema, or default. This is useful when parsing build-time * environmental variables that need to be access via the full object path, like * `process.env.COMMIT`. */ export declare function parseOrDefault>(value: string | undefined, schema: SchemaType, defaultValue: z.infer): z.infer; /** * Parse an arbitrary value using the zod schema, returning `null` on * failure. Use this for the common pattern of validating untrusted * runtime data (postMessage payloads, JSON strings parsed out of DOM * attributes, etc.) where the caller doesn't care *why* parsing failed * — they just want the typed value or nothing. */ export declare function parseSchemaOrNull>(value: unknown, schema: SchemaType): z.infer | null;