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