export interface SerializedSortedHash { sequence: string[]; hash: { [key: string]: TItem; }; } export declare class SortedHash { private sequence; private hash; constructor(defaultValue?: SerializedSortedHash); add(key: string, item: TItem): void; get(key: string): TItem | void; keys(): string[]; contains(key: string): boolean; getList(): TItem[]; map(callback: (item: TItem, index: number) => TValue): TValue[]; forEach(callback: (item: TItem, index: number) => void): void; insertAtIndex(key: string, item: TItem, index: number): void; remove(key: string): void; serialize(): { sequence: string[]; hash: { [x: string]: TItem; }; }; }