UNPKG

1.01 kBTypeScriptView Raw
1import { Syringe } from 'mana-syringe';
2import type { LayoutObject } from './LayoutObject';
3import { LayoutContext } from './LayoutContext';
4import type { LayoutFragment } from './LayoutFragment';
5import type { IntrinsicSizes, LayoutConstraints } from './types';
6export declare const LayoutChildrenFactory: Syringe.DefinedToken;
7export interface LayoutChildrenFactory {
8 (options: LayoutChildrenOptions): LayoutChildren;
9}
10export declare const LayoutChildrenOptions: Syringe.DefinedToken;
11export interface LayoutChildrenOptions {
12 node: LayoutObject;
13}
14export declare class LayoutChildren {
15 protected readonly _layoutContext: LayoutContext;
16 protected readonly options: LayoutChildrenOptions;
17 node: LayoutObject;
18 readonly styleMap: Map<string, any>;
19 layoutContext: LayoutContext;
20 constructor(_layoutContext: LayoutContext, options: LayoutChildrenOptions);
21 intrinsicSizes(): Promise<IntrinsicSizes>;
22 layoutNextFragment(constraints: LayoutConstraints): Promise<LayoutFragment>;
23}