export interface CharCountProps { /** * HTML ID for the node showing the description so that it can be included in the * `aria-describedby` attribute. */ id: string; /** * The text/value to count the number of characters of. * * Pass `undefined` if no value is set at all (yet), which prevents anything from * being displayed. */ text: string | undefined; /** * Optional upper bound to the number of characters. If provided, the displayed text * reports the remaining number of characters. */ limit?: number; } /** * Display the number of character used or remaining. * * If a limit is passed, the number of remaining characters are displayed, otherwise * just the total count. * * @see {@link https://design-system.service.gov.uk/components/character-count/ UK Gov documentation} */ declare const CharCount: React.FC; export default CharCount;