import { ConnectionToCore } from '@ulixee/net'; import { IDatastoreListEntry, IDatastoreRegistryApis } from '@ulixee/platform-specification/services/DatastoreRegistryApis'; import IDatastoreRegistryStore, { IDatastoreManifestWithLatest } from '../interfaces/IDatastoreRegistryStore'; import { TDatastoreUpload } from './DatastoreRegistry'; export default class DatastoreRegistryServiceClient implements IDatastoreRegistryStore { client: ConnectionToCore; source: "cluster"; hostAddress: URL; constructor(client: ConnectionToCore); close(): Promise; list(count?: number, offset?: number): Promise<{ datastores: IDatastoreListEntry[]; total: number; }>; getVersions(id: string): Promise<{ version: string; timestamp: number; }[]>; get(id: string, version: string): Promise; getLatestVersion(id: string): Promise; downloadDbx(id: string, version: string): ReturnType; upload(datastore: TDatastoreUpload): Promise<{ success: boolean; }>; }