import type { StandardSchemaV1 } from '@standard-schema/spec'; import type { Struct } from 'superstruct'; import type { FormSchema, ValidateReturnSchema } from '../types/form'; export declare function isSuperStructSchema(schema: any): schema is Struct; export declare function isStandardSchema(schema: any): schema is StandardSchemaV1; export declare function validateStandardSchema(state: any, schema: StandardSchemaV1): Promise>; export declare function validateSchema(state: T, schema: FormSchema): Promise>; export declare function getAtPath(data: T, path?: string): any; /** * Writes `value` at a dotted `path` inside `data`, creating what is missing. * * Unlike `set()` in `utils/index.ts`, this one *is* called from inside the * library — `Form.vue` resolves nested validation results through it, with the * path coming from a field's `name`. See `utils/prototype-guard.ts`. * * @throws {TypeError} if any path segment names `__proto__`, `constructor` or * `prototype`. */ export declare function setAtPath(data: T, path: string, value: any): T;