/** * Minimal vendored Standard Schema v1 types. * Vendoring keeps schema integration type-only and avoids a runtime dependency. * * @see https://standardschema.dev */ export interface StandardSchemaV1 { readonly "~standard": StandardSchemaV1.Props; } export declare namespace StandardSchemaV1 { export interface Props { readonly version: 1; readonly vendor: string; readonly validate: ( value: unknown, ) => Result | Promise>; readonly types?: Types | undefined; } export type Result = SuccessResult | FailureResult; export interface SuccessResult { readonly value: Output; readonly issues?: undefined; } export interface FailureResult { readonly issues: ReadonlyArray; } export interface Issue { readonly message: string; readonly path?: ReadonlyArray | undefined; } export interface PathSegment { readonly key: PropertyKey; } export interface Types { readonly input: Input; readonly output: Output; } export type InferInput = NonNullable< Schema["~standard"]["types"] >["input"]; export type InferOutput = NonNullable< Schema["~standard"]["types"] >["output"]; }