/** * Checks if current environment is 'development' */ export declare function isDevEnv(): boolean; /** * Calls console[type] with provided args * Useful to distinguish logs that should be in production * @param type - type of console (e.g. log, error) * @param args */ export declare function log(type: T, ...args: Parameters): any; /** * Function that calls console[type] only in dev environment * @param type - type of console (e.g. log, error) * @param args */ export declare function devLog(type: T, ...args: Parameters): void; /** * Makes promise cancelable * @author istarkov */ export declare function makeCancelable(promise: Promise): { promise: Promise; cancel(): void; };