UNPKG

fractal-core

Version:

A minimalist and well crafted app, content or component is our conviction

30 lines (29 loc) 896 B
import { Component, RunModule, Module } from '../core'; export declare const toHTML: (vnode: any) => any; export interface StaticRenderOptions { root: Component<any>; runModule: RunModule; bundlePaths: string[]; encoding?: string; html?: string; css?: string; url?: string; componentNames?: any; title?: string; description?: string; keywords?: string; author?: string; extras?: string; lang?: string; isStatic?: boolean; version?: string; base?: string; htmlFn?(op: StaticRenderOptions, renderData: RenderData, app: Module): any; cb?(app: Module): Promise<void>; } export interface RenderData { view: any; style: string; } export declare const renderHTML: (op: StaticRenderOptions) => Promise<string>; export declare function transformHTML(op: StaticRenderOptions, renderData: RenderData, app: Module): string;