import { UiCoreLocale } from './uiCoreLocale'; /** Screen readers hear the count only once the user is close to the limit, not on every keystroke. */ export declare const isNearCharacterLimit: (length: number, limit: number) => boolean; export interface CharacterCounterProps { /** Id of the visible count, for the field's `aria-describedby`. */ id: string; length: number; limit: number; locale?: UiCoreLocale; className?: string; } /** * The count of a free-text field with a character limit, such as *12 av 100 tegn* (field width * pattern WID-2, WID-12), so typed text is never cut without notice. * @figmaNode wXrXt5uKNNzV2DnQCgyYZH#45907-218317 */ export declare const CharacterCounter: ({ id, length, limit, locale, className }: CharacterCounterProps) => JSX.Element;