/** * Add text to the text buffer * * @param text * @param targetWindow */ export function append(text: any, targetWindow?: number): void; /** * Print out the text buffer * * @param targetWindow */ export function flush(targetWindow: any): void; /** * Register the output filter */ export function init(opt: any): void; /** * Add a newline to the buffer. * * @param targetWindow */ export function newline(targetWindow: any): void;