UNPKG

526 BTypeScriptView Raw
1import * as React from 'react';
2export declare function getDataFromTree(tree: React.ReactNode, context?: {
3 [key: string]: any;
4}): Promise<string>;
5export type GetMarkupFromTreeOptions = {
6 tree: React.ReactNode;
7 context?: {
8 [key: string]: any;
9 };
10 renderFunction?: (tree: React.ReactElement<any>) => string | PromiseLike<string>;
11};
12export declare function getMarkupFromTree({ tree, context, renderFunction }: GetMarkupFromTreeOptions): Promise<string>;
13//# sourceMappingURL=getDataFromTree.d.ts.map
\No newline at end of file