/** Misc data management utilities. */ /** Decent string hash. */ export declare function hash(str: string): number; /** Clean the id of brackets and lowercase everything. */ export declare function cleanId(id: string): string; /** Wrap an id with {} and cap it, if needed. */ export declare function wrapId(id: string): string; /** Simple normalization of data using a function to obtain the key. */ export declare function normalize(id: (t: T) => string, data: Array, tx: (t: T) => U): { [id: string]: U; }; /** Normalize with a key that accessed via a simple key lookup. */ export declare function normalizeWith(key: string, data: Array): { [id: string]: T; };