/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */
import { type JSX } from 'react';
/**
 * Tracks the length of the editor's text content against `maxLength` and
 * renders the number of remaining characters, marking any overflowing text so
 * it can be styled. Length is measured in either `'UTF-8'` or `'UTF-16'`
 * (default) code units via the `charset` prop, and the display can be
 * customized with the `renderer` prop.
 *
 * @returns The element produced by `renderer` (by default a `<span>` showing
 * the number of remaining characters).
 */
export declare function CharacterLimitPlugin({ charset, maxLength, renderer, }: {
    charset: 'UTF-8' | 'UTF-16';
    maxLength: number;
    renderer?: ({ remainingCharacters, }: {
        remainingCharacters: number;
    }) => JSX.Element;
}): JSX.Element;
