import { A11yAttributes } from '../utils/a11y'; import { IxFormComponent, IxInputFieldComponent, ValidationResults } from '../utils/input'; export declare function createIdIfNotExists(element: IxFormComponent, idPrefix?: string): any; export declare function mapValidationResult(ref: IxInputFieldComponent, result: ValidationResults): void; export declare function checkAllowedKeys(comp: IxInputFieldComponent, event: KeyboardEvent): void; export declare function checkInternalValidity(comp: IxFormComponent, input: HTMLInputElement | HTMLTextAreaElement): Promise; export declare function onInputBlur(comp: IxFormComponent, input?: HTMLInputElement | HTMLTextAreaElement | null): void; export declare function applyPaddingEnd(inputElement: HTMLElement | null, width: number, options: { slotEnd: boolean; additionalPaddingRight?: string; }): void; export declare function adjustPaddingForStartAndEnd(startElement: HTMLElement | null, endElement: HTMLElement | null, inputElement: HTMLElement | null): void; export declare function getAriaAttributesForInput(component: IxInputFieldComponent): A11yAttributes; export type DisposableChangesAndVisibilityObservers = () => void; export declare const addDisposableChangesAndVisibilityObservers: (element: HTMLElement, callback: () => void) => DisposableChangesAndVisibilityObservers; export declare function handleSubmitOnEnterKeydown(event: KeyboardEvent, suppressSubmitOnEnter: boolean, form: HTMLFormElement | null | undefined): void; export declare function onInputFocus(comp: { initialValue?: T; }, currentValue: T): void; export declare function onInputBlurWithChange(comp: IxFormComponent & { initialValue?: T; ixChange: { emit: (value: T) => void; }; }, input?: HTMLInputElement | HTMLTextAreaElement | null, currentValue?: T): void; export declare function onEnterKeyChangeEmit(event: KeyboardEvent, comp: { initialValue?: T; ixChange: { emit: (value: T) => void; }; }, currentValue: T): void; export interface PickerValidityStateTracker { lastEmittedPatternMismatch?: boolean; lastEmittedValueMissing?: boolean; } export declare function createPickerValidityStateTracker(): PickerValidityStateTracker; export interface PickerValidityContext { touched: boolean; invalidReason?: string; getValidityState: () => Promise; emit: (state: { patternMismatch: boolean; valueMissing: boolean; invalidReason?: string; }) => void; } export interface PickerInputComponent { validityTracker: PickerValidityStateTracker; touched: boolean; invalidReason?: string; getValidityState(): Promise; validityStateChange: { emit: (state: T) => void; }; } export declare function emitPickerValidityState(component: PickerInputComponent): Promise; export declare function emitPickerValidityStateChangeIfChanged(tracker: PickerValidityStateTracker, context: PickerValidityContext): Promise;