//#region src/index.d.ts type SplitMode = 'words' | 'chars' | 'both'; interface TextSlicerOptions { container?: HTMLElement | string; splitMode?: SplitMode; cssVariables?: boolean; dataAttributes?: boolean; keepWhitespaceNodes?: boolean; containerHeightVar?: boolean; locale?: string | string[]; } interface TextSlicerMetrics { wordTotal: number; charTotal: number; renderedAt: number; } interface TextSlicerCallbacks { onAfterRender?: (metrics: TextSlicerMetrics) => void; } declare const CLASSNAMES: Readonly<{ word: "ts-word"; char: "ts-char"; whitespace: "ts-whitespace"; }>; type RuntimeOptionPatch = Partial>; declare class TextSlicer { private readonly el; private original; private opts; private callbacks; private charIndex; private mounted; private resizeObserver?; private managedStyles; private managedAttributes; constructor(options?: TextSlicerOptions, callbacks?: TextSlicerCallbacks); get metrics(): TextSlicerMetrics; init(): void; reinit(newText?: string, next?: RuntimeOptionPatch): void; clear(): void; split(): void; destroy(): void; updateOptions(next: RuntimeOptionPatch): void; lockHeight(): void; unlockHeight(): void; private appendWords; private appendChars; private appendGraphemes; private appendGrapheme; private createWordSpan; private createCharSpan; private createWhitespaceSpan; private createHiddenTextSpan; private syncAccessibleLabel; private measureHeight; private syncHeightObserver; private setManagedStyle; private restoreManagedStyle; private restoreManagedStyles; private setManagedAttribute; private restoreManagedAttribute; } //#endregion export { CLASSNAMES, SplitMode, TextSlicer, TextSlicerCallbacks, TextSlicerMetrics, TextSlicerOptions }; //# sourceMappingURL=index.d.cts.map