summarizely-cli
Version:
YouTube summarizer that respects your existing subscriptions. No API keys required.
46 lines • 1.85 kB
TypeScript
export declare enum DebugCategory {
PROVIDER = "provider",
CACHE = "cache",
BATCH = "batch",
NETWORK = "network",
FILESYSTEM = "filesystem",
PERFORMANCE = "performance",
CONFIG = "config",
ERROR = "error",
GENERAL = "general"
}
export declare class Debug {
private static enabled;
private static verbose;
private static logFile;
private static categories;
private static initialize;
private static ensureLogDir;
static log(category: DebugCategory, message: string, data?: any): void;
static trace(category: DebugCategory, message: string): void;
static time(label: string): void;
static timeEnd(label: string): void;
static group(label: string): void;
static groupEnd(): void;
static table(data: any): void;
static assert(condition: boolean, message: string): void;
static memory(): void;
static setEnabled(enabled: boolean): void;
static setVerbose(verbose: boolean): void;
static addCategory(category: DebugCategory): void;
static removeCategory(category: DebugCategory): void;
static isEnabled(): boolean;
static isVerbose(): boolean;
}
export declare function debug(category: DebugCategory, message: string, data?: any): void;
export declare function debugTrace(category: DebugCategory, message: string): void;
export declare function debugTime(label: string): void;
export declare function debugTimeEnd(label: string): void;
export declare const debugHelpers: {
provider: (action: string, provider: string, data?: any) => void;
cache: (action: string, key: string, hit: boolean) => void;
batch: (action: string, current: number, total: number) => void;
network: (method: string, url: string, status?: number) => void;
error: (error: Error, context?: string) => void;
};
//# sourceMappingURL=debug.d.ts.map