UNPKG

972 BTypeScriptView Raw
1import type { IntrinsicSizes, LayoutConstraints, LayoutOptions } from './types';
2import type { FragmentResultOptions, FragmentResult } from './FragmentResult';
3import type { LayoutChildren } from './LayoutChildren';
4import type { LayoutEdges } from './LayoutEdges';
5export declare abstract class AbstractLayoutDefinition {
6 static inputProperties: string[];
7 static childrenInputProperties: string[];
8 static layoutOptions: LayoutOptions;
9 abstract intrinsicSizes(children: LayoutChildren[], edges: LayoutEdges, styleMap: Map<string, any>): Promise<IntrinsicSizes>;
10 abstract layout(children: LayoutChildren[], edges: LayoutEdges, constraints: LayoutConstraints, styleMap: Map<string, any>): Promise<FragmentResultOptions | FragmentResult>;
11}
12/**
13 * internal use
14 */
15export declare type LayoutDefinitionCtor = {
16 new (): AbstractLayoutDefinition;
17 inputProperties: string[];
18 childrenInputProperties: string[];
19 layoutOptions: LayoutOptions;
20};