// Type definitions for html 1.0 // Project: https://github.com/maxogden/commonjs-html-prettyprinter // Definitions by: Florian Keller // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface PrintOptions { /** * Put braces on the same line as control statements (`collapse`), * or put braces on own line (Allman / ANSI style, `expand`), * or just put end braces on own line (`end-expand`). Default: `collapse`. */ brace_style?: 'collapse' | 'expand' | 'end-expand'; /** Default: `normal`. */ indent_scripts?: 'keep' | 'separate' | 'normal'; /** indentation size. Default: 4. */ indent_size?: number; /** character to indent with. Default: " " (space). */ indent_char?: string; /** Maximum amount of characters per line. Default: 70. */ max_char?: number; /** list of tags, that shouldn't be reformatted. Defaults to inline tags. */ unformatted?: string[]; } export function prettyPrint(htmlSource: string, options?: PrintOptions): string;