import type { TranslationContextValue } from '../context/TranslationContext'; /** Produces one segment of a composed accessible name; return `undefined`/empty to omit it. */ export type AccessibleLabelPart = (data: TData) => string | undefined; /** Customization for a part-composed accessible name. */ export type AccessibleLabelConfig = { /** Returns the entire label; `order`, `parts` and `separator` are then ignored. */ build?: (data: TData) => string; /** Which parts to include, in what order. A part not listed here is never rendered. */ order?: ReadonlyArray; /** Override or add individual part generators; merged over the defaults. */ parts?: Record>; /** Joiner between non-empty parts. Defaults to ". ". */ separator?: string; }; /** * Composes an accessible name from named parts, joining the non-empty segments with * `config.separator`. `config.build` replaces the whole label; `config.parts` merge over * `defaultParts`. */ export declare const composeAccessibleLabel: (data: TData, defaultParts: Record>, defaultOrder: ReadonlyArray, config?: AccessibleLabelConfig) => string; type WithT = { t: TranslationContextValue['t']; }; /** * Announces the active (currently open) row in its name, because `aria-selected` alone is not * reliably spoken for an option with a custom name. */ export declare const activeLabelPart: AccessibleLabelPart; /** Announces the unread count when there is one. */ export declare const unreadCountLabelPart: AccessibleLabelPart; export {}; //# sourceMappingURL=accessibleLabel.d.ts.map