import type { JSONSchema7 } from 'json-schema'; import type { ZodType } from 'zod'; export type ParseResult = { success: true; data: T; } | { success: false; error: string; schemaInvalid?: true; }; export interface ParseOptions { stripUnknown?: boolean; } export declare function parseWithSchema(schema: ZodType | JSONSchema7, data: unknown, options?: ParseOptions): Promise;