// Type definitions for asciify 1.3.5 // Project: https://www.npmjs.org/package/asciify // Definitions by: Alan Norbauer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// interface AsciifyOptions { font?: string; maxWidth?: number; color?: string; } interface AsciifyCallback { // err is sometimes a string and sometimes an Error (err: any, asciifiedText: string): void } declare module "asciify" { function asciify(text: string, callback: AsciifyCallback): void; function asciify(text: string, options: string, callback: AsciifyCallback): void; function asciify(text: string, options: AsciifyOptions, callback: AsciifyCallback): void; namespace asciify { function getFonts(callback: (err: Error, fonts: string[]) => void): void; } export = asciify }