type LogType = 'info' | 'error' | 'warn'; declare function error(message: string, ...args: any[]): void; /** * info 会转换成浏览器的 console.debug * @param message * @param args */ declare function info(message: string, ...args: any[]): void; declare function warn(message: string, ...args: any[]): void; /** * 注册自定义埋点函数 * * @param fn */ declare function register(fn: (type: LogType, message: string, ...args: any[]) => void): void; export declare const logger: { error: typeof error; info: typeof info; warn: typeof warn; register: typeof register; }; export {};