/** * * @original-license * * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license * * * * Credit: Derived and extended from https://github.com/angular/angular in order to have set of * reusable globals. Since its not exported API need to have a copy under core. */ export declare function readGlobalParam(varName: any): { [name: string]: any; }; export declare function unimplemented(): any; export declare function isPresent(obj: any): boolean; export declare function isBlank(obj: any): boolean; export declare function isBoolean(obj: any): boolean; export declare function isNumber(obj: any): boolean; export declare function isString(obj: any): obj is string; export declare function isFunction(obj: any): boolean; export declare function isType(obj: any): boolean; export declare function isStringMap(obj: any): obj is Object; export declare function isStrictStringMap(obj: any): boolean; export declare function isArray(obj: any): boolean; export declare function isDate(obj: any): obj is Date; export declare function isListLikeIterable(obj: any): boolean; /** * Checks if `obj` is a window object. * */ export declare function isWindow(obj: any): boolean; /** * Determines if a value is a regular expression object. * */ export declare function isRegExp(value: any): boolean; export declare function noop(): void; export declare function stringify(token: any): string; export declare function className(clazz: any): string; export declare class StringWrapper { static split(s: string, regExp: RegExp): string[]; static equals(s: string, s2: string): boolean; static stripLeft(s: string, charVal: string): string; static replace(s: string, from: string, replace: string): string; static slice(s: string, from?: number, to?: number): string; static contains(s: string, substr: string): boolean; static compare(a: string, b: string): number; static startsWidth(subject: string, searchString: string): boolean; } export declare class StringJoiner { parts: string[]; constructor(parts?: string[]); add(part: string): StringJoiner; last(): string; toString(): string; } export declare function isJsObject(o: any): boolean; export declare function print(obj: Error | Object): void; export declare function assert(condition: boolean, msg: string): void; export declare function checksum(s: any): string; export declare class BooleanWrapper { static boleanValue(value?: any): boolean; static isFalse(value: any): boolean; static isTrue(value: any): boolean; } export declare function getSymbolIterator(): string | symbol; export declare function escape(s: string): string; export declare function objectValues(obj: any): any[]; /** * * Converts object to a name; * */ export declare function objectToName(target: any): string; /** * * Basic function to generate UUID taken from W3C from one of the examples * */ export declare function uuid(): string; /** * Check object equality derived from angular.equals 1.5 implementation * */ export declare function equals(o1: any, o2: any): boolean; /** * transform a string into decamel. form. Mostly used when reading class names or field names * such firstName and we want to create a label First Name * * */ export declare function decamelize(string: string, separator?: string, initialCaps?: boolean): string; export declare function nonPrivatePrefix(input: string): string; /** * * This considers currently only 1 form which when we have getter we have this form for * declaration _ and get (). I do not check any other forms now. * * */ export declare function hasGetter(instance: any, field: string): boolean; /** * The Extensible interface can be implemented when a given class * wants to provide dynamically added fields. Once this is implemented * to return a Map, the FieldValue system will be able to look in * the Map to see if the desired field exists. * * */ export declare abstract class Extensible { /** * Returns the Map in which the dynamically added fields reside. * */ extendedFields(): Map; }