import { Constructor } from '../util/mixin.ts'; import { GroupsAPI, StackItem } from './groups.ts'; import { Length } from '../types.ts'; declare module "./groups.ts" { 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.ts').default; _groups: import('../util/stack.ts').default; enterGroup(copyAttrs?: boolean): void; exitGroup(): void; startBalanced(): void; endBalanced(): number; isBalanced(): boolean; _options: import('../options.ts').Options; _uid: number; get options(): import('../options.ts').Options; nextId(): number; round(num: number): number; _errorFn: (e: string) => never; setErrorFn(fn: (msg: string) => never): void; error(e: string): never; _rangeFn: () => import('./core.ts').SourceRange; setRangeFn(fn: () => import('./core.ts').SourceRange): void; offset(): number; }) & TBase;