UNPKG

765 BTypeScriptView Raw
1import { IClient, IPaginator, PaginateArgs, ResourceClientLoad, ResourceClientPaginate, Response, Snapshot } from '../definitions';
2import { ResourceClient } from './http';
3export interface SnapshotClientDeps {
4 readonly client: IClient;
5 readonly token: string;
6 readonly app: {
7 id: string;
8 };
9}
10export declare class SnapshotClient extends ResourceClient implements ResourceClientLoad<Snapshot>, ResourceClientPaginate<Snapshot> {
11 protected client: IClient;
12 protected token: string;
13 protected app: {
14 id: string;
15 };
16 constructor({ client, app, token }: SnapshotClientDeps);
17 load(id: string): Promise<Snapshot>;
18 paginate(args?: Partial<PaginateArgs<Response<Snapshot[]>>>): IPaginator<Response<Snapshot[]>>;
19}