import { FetchOptions, Gateway } from '../types/Gateway'; import { PageList } from '../types/PageList'; import { Json, JsonValue } from '../types/Json'; import { Id } from '../types/Id'; import { Optional } from '../types/Types'; export declare class InMemoryGateway extends Gateway { private readonly data; constructor(data: Promise>); all(options?: FetchOptions): Promise>; byId(id: Id): Promise>; by: (key: string, value: JsonValue) => Promise>; exists(id: Id): Promise; add(item: Json): Promise; remove(id: Id): Promise; update(item: Json): Promise; }