export interface Debugger { (formatter: any, ...args: any[]): void; color: string; diff: number; enabled: boolean; log: (...args: any[]) => any; namespace: string; destroy: () => boolean; extend: (namespace: string, delimiter?: string) => Debugger; } export type IDebugger = Debugger; declare const enable: (namespaces: string) => void; declare const disable: () => string; export { enable, disable }; export type LogLevel = 'trace' | 'debug' | 'log' | 'info' | 'warn' | 'error'; export type LogMethodName = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'trace'; export interface Logger { log: Debugger; info: Debugger; warn: Debugger; error: Debugger; debug: Debugger; trace: Debugger; setLevel(level: LogLevel): void; pushContext(entry: string): void; popContext(): string | undefined; resetContext(): void; } export interface LoggerOptions { ns: string; context?: string; cache?: boolean; } export declare function getLogger(ns: string, context?: string, cache?: boolean): Logger; export declare function getLogger(opts: LoggerOptions): Logger; export declare function setLevel(pattern: string): void; export declare function namespaces(): string[]; export declare function cb(ns?: string): (err: any, data?: any) => void; export declare function promise(p: PromiseLike, ns?: string): PromiseLike; //# sourceMappingURL=index.d.ts.map