import { ValidationError, ValidityStateKey } from './types.js'; import type { ValidationErrorSource, ValidationState, ValidationTrigger } from './types.js'; type NativeValidationElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | null | undefined; type ValidationStateInput = NativeValidationElement | ValidityStateKey; /** * Returns a copy of `error` with `source` overridden, preserving the original's * exact class (so a `FormValidationError`'s `formId` survives) plus its `message` * and `stack`. Returns `error` itself when `source` already matches, so identity * is preserved for callers that key off it (e.g. effect dependency arrays). * @internal */ export declare function withSource(error: ValidationError, source: ValidationErrorSource): ValidationError; /** * Creates a {@link ValidationState} from a source-specific validation result. * * @remarks * When passing a native element, the caller is responsible for triggering * validation (e.g. `checkValidity()`) before calling this. Validity keys are * classified by comparing against the exported Native and Strato key registries; * unknown keys are treated as custom validation errors. * * @internal */ export declare function getValidationState(input: ValidationStateInput, trigger: ValidationTrigger, message?: string, formControlId?: string | string[]): ValidationState; export {}; //# sourceMappingURL=validation-builders.d.ts.map