import { grpc } from "@improbable-eng/grpc-web"; import { ListStorageInfoResponse, StorageInfoResponse } from "@textile/grpc-powergate-client/dist/powergate/admin/v1/admin_pb"; import { Config } from "../../types"; export interface AdminStorageInfo { /** * Get the current storage state of a cid. * @param userId The user id to query. * @param cid The cid to query. * @returns The current storage state of the cid. */ get: (userId: string, cid: string) => Promise; /** * Lists the current storage state for many or all user ids and cids. * @param cids Optional list of cids to filter the results by. * @returns An object containing a list of storage info. */ list: (userIds?: string[], cids?: string[]) => Promise; } /** * @ignore */ export declare const createStorageInfo: (config: Config, getMeta: () => grpc.Metadata) => AdminStorageInfo;