declare namespace render { type Options = { /** * Custom single tags (selfClosing). * * @default [] */ singleTags: string[] | RegExp[]; /** * Closing format for single tag. * * Formats: * * tag: `

`, slash: `
`, default: `
` * */ closingSingleTag: "tag" | "slash"; /** * If all attributes should be quoted. * Otherwise attributes will be unquoted when allowed. * * @default true */ quoteAllAttributes: boolean; }; // PostHTML Tree type Tree = Node[]; type Node = NodeText | NodeTag; type NodeText = string; type NodeTag = { tag: string; attrs?: Attributes; content?: Node[]; }; type Attributes = Record; } /** * Render PostHTML Tree to HTML * @param tree PostHTML Tree * @param options Render options * @returns HTML */ declare function render( tree: render.Tree, options?: Partial ): string; export = render;