// Type definitions for @dyna-grid/core v1.1.4 // Project: // Definitions by: zhangkun <> /** * If value is undefined, null or blank, returns null, otherwise returns the value * @param {T} value * @returns {T | null} */ export declare function makeNull(value?: T): T | null; export declare function exists(value: string | null | undefined, allowEmptyString?: boolean): value is string; export declare function exists(value: T): value is NonNullable; export declare function missing(value: T | null | undefined): value is Exclude; export declare function missingOrEmpty(value?: T[] | string | null): boolean; export declare function toStringOrNull(value: any): string | null; export declare function attrToNumber(value?: number | string | null): number | null | undefined; export declare function attrToBoolean(value?: boolean | string | null): boolean | undefined; export declare function attrToString(value?: string): string | undefined; export declare function jsonEquals(val1: T1, val2: T2): boolean; export declare function defaultComparator(valueA: any, valueB: any, accentedCompare?: boolean): number; export declare function find(collection: T[] | { [id: string]: T; } | null, predicate: string | boolean | ((item: T) => boolean), value?: any): T | null; export declare function values(object: { [key: string]: T; } | Set | Map): T[];