type writeFunc = (chunk: string, encoding: string, done?: Function) => void; /** * Convenience class used to write chunks */ export default class Writer { private indents; private write; private compact; end: (done?: Function) => void; constructor(options: { write: writeFunc; end: (done?: Function) => void; compact?: boolean; }); indent(): this; deindent(): this; add(s: string): this; newLine(no: number): this; } export {};