export = setup; export = setup; /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ declare function setup(env: any): { (namespace: string): Function; debug: any; default: any; coerce: (val: Mixed) => Mixed; disable: () => string; enable: (namespaces: string) => void; enabled: (name: string) => boolean; humanize: any; /** * Active `debug` instances. */ instances: any[]; /** * The currently active debug mode names, and names to skip. */ names: any[]; skips: any[]; /** * Map of special "%n" handling functions, for the debug "format" argument. * * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". */ formatters: {}; selectColor: (namespace: string) => number | string; }; declare namespace setup { export { settings, load, parseMessage, C, isSocket, str_utf8_length, isFunction, isString, isDecimal, isEmpty, hasMethods, createRandomToken, newTag, newUUID, hostType, escapeUser, normalizeTarget, headerize, sipErrorCause, getRandomTestNetIP, calculateMD5, closeMediaStream, cloneArray, cloneObject, log, formatArgs, save, useColors, storage, colors, writer as write, unknown as parse, unknown as parseParams, parseFmtpConfig, unknown as parsePayloads, unknown as parseRemoteCandidates, unknown as parseImageAttributes, unknown as parseSimulcastStreamList }; } declare namespace settings { const authorization_user: null; const password: null; const realm: null; const ha1: null; const authorization_jwt: null; const display_name: null; const uri: null; const contact_uri: null; const instance_id: null; const use_preloaded_route: boolean; const session_timers: boolean; const session_timers_refresh_method: any; const session_timers_force_refresher: boolean; const no_answer_timeout: number; const register: boolean; const register_expires: number; const registrar_server: null; const sockets: null; const connection_recovery_max_interval: any; const connection_recovery_min_interval: any; const via_host: string; } /** * Load `namespaces`. * * @return {String} returns the previously persisted debug modes * @api private */ declare function load(): string; declare function parseMessage(data: any, ua: any): any; declare namespace C { const MIN_DURATION: number; const MAX_DURATION: number; const DEFAULT_DURATION: number; const MIN_INTER_TONE_GAP: number; const DEFAULT_INTER_TONE_GAP: number; } declare function isSocket(socket: any): boolean; declare function str_utf8_length(string: any): number; declare function isFunction(fn: any): boolean; declare function isString(str: any): boolean; declare function isDecimal(num: any): boolean; declare function isEmpty(value: any): boolean; declare function hasMethods(obj: any, ...args: any[]): boolean; declare function createRandomToken(size: any, ...args: any[]): string; declare function newTag(): string; declare function newUUID(): string; declare function hostType(host: any): any; declare function escapeUser(user: any): string; declare function normalizeTarget(target: any, domain: any): any; declare function headerize(string: any): string; declare function sipErrorCause(status_code: any): any; declare function getRandomTestNetIP(): string; declare function calculateMD5(string: any): string; declare function closeMediaStream(stream: any): void; declare function cloneArray(array: any): any; declare function cloneObject(obj: any, ...args: any[]): any; /** * Invokes `console.log()` when available. * No-op when `console.log` is not a "function". * * @api public */ declare function log(...args: any[]): false | void; /** * Colorize log arguments if enabled. * * @api public */ declare function formatArgs(args: any): void; /** * Save `namespaces`. * * @param {String} namespaces * @api private */ declare function save(namespaces: string): void; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, * and the Firebug extension (any Firefox version) are known * to support "%c" CSS customizations. * * TODO: add a `localStorage` variable to explicitly enable/disable colors */ declare function useColors(): any; declare const storage: LocalStorage; declare const colors: string[];