import { HttpParams } from '@angular/common/http'; export * from './convert'; /** * Common utility functions */ /** * Convert a base64 string to a Buffer * * @see https://gist.github.com/borismus/1032746 */ export declare function base64ToBuffer(base64: string): any; /** * Simple debounce; useful when no stream is at play */ export declare function debounce(func: Function, wait?: number, immediate?: boolean): Function; /** * Deep copy an object, albeit not terribly efficiently */ export declare function deepCopy(obj: T): T; /** * Dump buffer */ export declare function dump(data: Uint8Array, title: string, ebcdic?: boolean, color?: string): void; /** * Format a date * * TODO: localization other than en-US */ export declare function formatDate(date: Date, fmt: string): string; /** * Is this object empty? */ export declare function isObjectEmpty(obj: any): boolean; /** * Is this object equal to another? * * NOTE: only a shallow compare */ export declare function isObjectEqual(a: any, b: any): boolean; /** * Run code on next tick */ export declare function nextTick(f: Function): void; /** * null-safe accessor * * NOTE: unnecessary if we had a ?. operator */ export declare function nullSafe(obj: any, expr: string): any; /** * Parse initial search parameters */ export declare function parseInitialSearchParams(): HttpParams; /** * Pluralize a number into a string * * TODO: localization other than en-US */ export declare function pluralize(num: number, mapping: { [k: string]: string; }): string; /** * Simple map reversal */ export declare function reverseMap(obj: any): any; /** * Convert to hex, with padding */ export declare function toHex(num: number, pad: number): string;