import { type Dimensions, type PartialWithUndefined } from '@augment-vir/common';
import { type AnyDuration } from '@date-vir/duration';
/**
 * Calculate the dimensions needed for an element's text. This is a relatively expensive operation,
 * so it should not be called excessively.
 *
 * @category Web : Elements
 * @category Package : @augment-vir/web
 * @package [`@augment-vir/web`](https://www.npmjs.com/package/@augment-vir/web)
 */
export declare function calculateTextDimensions(parentElement: Element, text: string, customOptions?: PartialWithUndefined<{
    timeout: AnyDuration;
    errorMessage: string;
    /** Set to true to leave the text element in the DOM. */
    debug: boolean;
}>): Promise<Dimensions>;
