declare enum Level { CRITICAL = "CRITICAL", ERROR = "ERROR", WARNING = "WARNING", NOTICE = "NOTICE", INFO = "INFO", DEBUG = "DEBUG" } interface Console { fatal?: (...data: any[]) => void; } declare const isError: (value: any) => boolean; declare const formatObject: (object: any) => string; declare const format: (...params: any[]) => string[]; declare const errorAttributes: (error: any) => { [key: string]: unknown; } | undefined; declare const sendLogToServer: (level: Level, message: string | string[], trace?: string, attributes?: unknown) => void; declare const sendParams: (level: Level, params: any[]) => void; declare const patchConsoleLog: () => void; declare const registerErrorHandler: () => void;