import { Constructor } from '../util/mixin.cjs'; import { GroupsAPI, StackItem } from './groups.cjs'; import { Length } from '../types.cjs'; declare module './groups.cjs' { interface StackItem { lengths: Map; ownsLengths: boolean; } } export declare function Lengths>(Base: TBase): (abstract new (...args: any[]) => { reset(): void; _newGroup(parent: StackItem | undefined, copyAttrs: boolean): StackItem; _writableLengths(): Map; newLength(l: string): void; hasLength(l: string): boolean; setLength(id: string, length: Length): void; length(l: string): Length; _stack: import('../util/stack.cjs').default; _groups: import('../util/stack.cjs').default; enterGroup(copyAttrs?: boolean): void; exitGroup(): void; startBalanced(): void; endBalanced(): number; isBalanced(): boolean; _options: import('../options.cjs').Options; _uid: number; get options(): import('../options.cjs').Options; nextId(): number; round(num: number): number; _errorFn: (e: string) => never; setErrorFn(fn: (msg: string) => never): void; error(e: string): never; _rangeFn: () => import('./core.cjs').SourceRange; setRangeFn(fn: () => import('./core.cjs').SourceRange): void; offset(): number; }) & TBase;