/** * Main entry point. This issues a request to the web worker to perform flexbox layout * on the given `styleTree`, calling the `callback` function with the results when finished. * * @param {FlexLayoutStyleNode} styleTree * @param {function(FlexLayoutResult)} callback */ export function requestFlexLayout(styleTree: FlexLayoutStyleNode, callback: (arg0: FlexLayoutResult) => any): void; export const flexLayoutProcessorWorkerModule: any; /** * - layout result for a single flex node. */ export type FlexLayoutResultNode = { /** * - the node's computed left position */ left: number; /** * - the node's computed top position */ top: number; /** * - the node's computed width */ width: number; /** * - the node's computed height */ height: number; }; /** * - Parameters for the `measureFunction`. */ export type MeasureFunctionParams = { text: string; font: string; fontSize: number; lineHeight: number; letterSpacing: number; whiteSpace: string; overflowWrap: string; maxWidth: number; };