import type { FormFieldMessageContextState, ValidationErrorEntry } from '../types/formfield-messages.types.js'; /** * The id shape `RuntimeFieldMessageRegistration` (in `FormFieldMessages.tsx`) * produces for entries it aggregates from `runtime.getFieldMessages()` — * native/Strato field-state errors, `setError()` errors, and form-validator * errors alike. * @internal */ export declare function isRuntimeManagedId(id: string): boolean; /** * Whether an error entry was registered by a control/the framework rather * than by the consumer — used to tell it apart from a consumer `Item`'s. * * `source !== 'custom'` covers native/Strato errors dispatched directly by a * control (e.g. `useFormFieldValidation`'s own native-validity handling, * which uses its own id, not the `runtime-` prefix). The `runtime-` id check * separately covers `setError()`/form-validator errors aggregated by * `RuntimeFieldMessageRegistration` — those are `source: 'custom'` just like * a consumer `Item`, so `source` alone can't make the distinction for them. * @internal */ export declare function isInternalErrorEntry(entry: ValidationErrorEntry): boolean; /** * Ids of all messages registered by the consumer rather than by the control * itself. Used by controls that clear consumer messages on `resetValidation()`. * @internal */ export declare function getCustomMessageIds(state: FormFieldMessageContextState | undefined): string[]; //# sourceMappingURL=formfield-messages-selectors.d.ts.map