import { BuildInfoResponse, UserIdentifierResponse } from "@textile/grpc-powergate-client/dist/powergate/user/v1/user_pb"; import { Admin, AdminData, AdminGetMinersOptions, AdminIndices, AdminListOptions, AdminRecords, AdminStorageInfo, AdminStorageJobs, AdminUsers, AdminWallet } from "./admin"; import { Data, GetFolderOptions, WatchLogsOptions } from "./data"; import { DealRecordsOptions, Deals } from "./deals"; import { ApplyOptions, StorageConfig } from "./storage-config"; import { StorageInfo } from "./storage-info"; import { ListOptions, ListSelect, StorageJobs } from "./storage-jobs"; import { Config } from "./types"; import { Wallet } from "./wallet"; export * as adminTypes from "@textile/grpc-powergate-client/dist/powergate/admin/v1/admin_pb"; export * as powTypes from "@textile/grpc-powergate-client/dist/powergate/user/v1/user_pb"; export { Admin, Config, Data, Deals, StorageConfig, StorageJobs, Wallet, ListOptions, ListSelect, AdminListOptions, AdminGetMinersOptions, GetFolderOptions, ApplyOptions, WatchLogsOptions, DealRecordsOptions, AdminRecords, AdminIndices, AdminData, AdminStorageInfo, AdminStorageJobs, AdminUsers, AdminWallet, }; export interface Pow { /** * Set the active user auth token * @param t The token to set */ setToken: (t: string) => void; /** * Set the active admin auth token * @param t The token to set */ setAdminToken: (t: string) => void; /** * Returns build information about the server * @returns An object containing build information about the server */ buildInfo: () => Promise; /** * Get the user ID. * @returns A Promise containing the user ID. */ userId: () => Promise; /** * The host address the client is using */ host: string; /** * The StorageConfig API */ storageConfig: StorageConfig; /** * The Data API */ data: Data; /** * The Wallet API */ wallet: Wallet; /** * The Deals API */ deals: Deals; /** * The StorageInfo API */ storageInfo: StorageInfo; /** * The StorageJobs API */ storageJobs: StorageJobs; /** * The Admin API */ admin: Admin; } /** * Creates a new Powergate client * @param config A config object that changes the behavior of the client * @returns A Powergate client API */ export declare const createPow: (config?: Partial | undefined) => Pow;