import type { CSSStyleValue, ParsedBaseStyleProps } from '@antv/g-lite'; import type { LayoutFragment } from './LayoutFragment'; import type { IntrinsicSizes, MeasureFn } from './types'; interface LayoutObjectIntrinsicSizes { minContentInlineSize: number; minContentBlockSize: number; maxContentInlineSize: number; maxContentBlockSize: number; } export declare class LayoutObject { private id; private style; private dirty; parent?: LayoutObject; children: LayoutObject[]; private internalIntrisicSizes?; private computedLayout?; get intrisicSizes(): LayoutObjectIntrinsicSizes; get childCount(): number; private measureFn?; constructor(style?: Map); /** * set the intrinsic size of leaf node, different basic shape has different size, compsed shape has * @param measure measure function */ setMeasure(measure: MeasureFn): void; setIntrisicSizes(intrisicSizes: IntrinsicSizes): void; addChild(child: LayoutObject): void; insertChild(index: number, child: LayoutObject): void; removeChild(child: LayoutObject): void; removeChildAtIndex(index: number): void; replaceChildAtIndex(index: number, child: LayoutObject): void; setStyle(property: keyof ParsedBaseStyleProps, value: CSSStyleValue): void; getStyle(...properties: string[]): Map; getAllStyle(): Map; markDirty(): void; idDirty(): boolean; private getSize; computeLayout(): Promise; setComputedLayout(computedLayout: LayoutFragment): void; getComputedLayout(): LayoutFragment; getAllComputedLayout(): void; toString(): string; } export {}; //# sourceMappingURL=LayoutObject.d.ts.map