import { DictionaryEntry, predicate } from './constants'; import { keyvalue } from '../../../types/keyvalue.type'; export interface IDictionary { add(table: string, arg: T, predicate: (arg: T) => boolean): void; set(table: string, arg: T): void; delete(table?: string, predicate?: predicate): Array>; clear(table?: string): Array>; get(table?: string, predicate?: predicate): Array>; has(table: string): boolean; count(table?: string, countElements?: boolean): number; toList(sort: ((a: any, b: any) => number) | null, predicate: predicate): Array>>; }