export type StandardSchemaV1Issue = { readonly message: string; readonly path?: ReadonlyArray | undefined; }; export type StandardSchemaV1SuccessResult = { readonly value: OutputType; readonly issues?: undefined; }; export type StandardSchemaV1FailureResult = { readonly issues: readonly StandardSchemaV1Issue[]; readonly value?: undefined; }; export type StandardSchemaV1Result = StandardSchemaV1SuccessResult | StandardSchemaV1FailureResult; export type StandardSchemaV1Types = { readonly input: InputType; readonly output: OutputType; }; export type StandardSchemaV1Options = { readonly libraryOptions?: Readonly> | undefined; }; export type StandardSchemaV1 = { readonly '~standard': { readonly version: 1; readonly vendor: string; readonly validate: (value: unknown, options?: StandardSchemaV1Options) => StandardSchemaV1Result | Promise>; readonly types?: StandardSchemaV1Types | undefined; }; }; export type StandardSchemaV1InferOutput = Schema['~standard'] extends { readonly types: StandardSchemaV1Types; } ? OutputType : Extract>, StandardSchemaV1SuccessResult> extends StandardSchemaV1SuccessResult ? OutputType : unknown;