/** * Various javascript 'language' extensions. These are functions which appear to be reused across projects, tests, libs */ export declare const hashCode: (s: string) => number; export declare const isInBrowser: boolean; export declare const isInNode: boolean; export declare const isBlank: (value?: string | undefined) => boolean; /** * Return an id that is only unique for the current browser session (resets across reloads) */ export declare const newLocalId: () => string; /** * Return a promise that resolves in the given ms * @param ms */ export declare function delayMs(ms: number): Promise; export declare function isFunction(obj: any): obj is Function; export declare function isString(obj: any): obj is string; export declare function isStringArray(obj: any): obj is string[]; export declare function isArrayOf(obj: any, typeOf: Function): obj is T[]; export declare function isArray(obj: any): obj is T[]; export declare function isNumber(obj: any): obj is Number; /** * Like partial properties but at least property must be set */ export declare type AtLeastOneOf; }> = Partial & U[keyof U];