import "../../createForm/index.mjs"; //#region src/composables/useRules/adapters/standard.d.ts /** * Minimal duck-typed interface matching the Standard Schema spec (v1). * No npm dependency — structurally compatible with Zod (v3.24+), Valibot, ArkType, and others. * * @see https://standardschema.dev/ */ interface StandardSchemaIssue { readonly message: string; readonly path?: ReadonlyArray | undefined; } interface StandardSchemaResult { readonly value?: unknown; readonly issues?: ReadonlyArray | undefined; } interface StandardSchemaV1 { readonly '~standard': { readonly version: 1; readonly vendor: string; readonly validate: (value: unknown) => StandardSchemaResult | Promise; }; } /** * Type guard for Standard Schema objects. * Checks for the `~standard` property that all conforming libraries expose. * * @param value The value to check. * @returns `true` if the value conforms to the Standard Schema interface. */ declare function isStandardSchema(value: unknown): value is StandardSchemaV1; //#endregion export { StandardSchemaV1, isStandardSchema };