import { AriaAttributes } from 'react'; interface AriaLabelAttributesConfig { label?: string; id?: string; fallbackId?: string; prefer?: 'id' | 'label'; } export type AriaLabelAttributes = Pick; export declare const getAriaLabelAttributes: (config: AriaLabelAttributesConfig) => AriaLabelAttributes | undefined; export interface ErrorAriaProps { error?: boolean; 'aria-describedby'?: string; errorText?: string; errorTextId?: string; } /** * Get IDs to be used with aria-describedby in form components like * @param props Props from form component * @param errorTextUuid Unique ID of the form component's error text * @returns Element IDs or undefined if there is no aria-description */ export declare const getAriaDescribedBy: (props: ErrorAriaProps, errorTextUuid: string) => string | undefined; export {};