import { type Creatable, type FormMerger, type FormValidator, type MergerFactoryOptions, type Schema, type UiOptionsRegistry, type UiSchemaRoot, type ValidatorFactoryOptions } from "@sjsf/form"; import type { MaybePromise } from "@sjsf/form/lib/types"; import type { StandardSchemaV1 } from "@standard-schema/spec"; import { type FormDataConverterOptions, type UnknownEntryConverter } from "../../internal/convert-form-data-entry.js"; import { type EntryConverter } from "../../model.js"; import { type ServerTranslation } from "./translation.js"; export interface SvelteKitFormValidatorOptions { schema: Schema; validator: Creatable, ValidatorFactoryOptions>; merger: Creatable; uiSchema?: UiSchemaRoot; uiOptionsRegistry?: UiOptionsRegistry; createEntryConverter?: Creatable, FormDataConverterOptions>; convertUnknownEntry?: UnknownEntryConverter; pseudoPrefix?: string; /** By default, handles conversion of `File` */ createReviver?: (input: Record) => (key: string, value: any) => any; serverTranslation?: ServerTranslation; } export interface ValidationResult { idPrefix: string; data: R; } export declare function createServerValidator({ serverTranslation, schema, uiSchema, merger: createMerger, validator: createValidator, uiOptionsRegistry, createEntryConverter, convertUnknownEntry, pseudoPrefix, createReviver, }: SvelteKitFormValidatorOptions): StandardSchemaV1> & { validate: (input: unknown) => MaybePromise>>; };