import { FetchOptions } from './Gateway'; import { PageList } from './PageList'; import { Id, Key } from './Id'; import { List } from './List'; import { Json, JsonValue } from './Json'; export declare class Repository { all(options?: Options): Promise>; byId(id: Id): Promise; byIds(...ids: Id[]): Promise>; byKey(key: Key, options?: Options): Promise>; by(key: keyof T, value: JsonValue, options?: Options): Promise>; search(q: JsonValue, options?: Options): Promise>; filter(options?: Options): Promise>; exists(id: Id): Promise; add(t: Partial | Json): Promise; update(id: Id, json: Partial | Json): Promise; remove(id: Id): Promise; upsert(id: Id, item: Partial | Json): Promise; }