import { grpc } from "@improbable-eng/grpc-web"; import { RetrievalDealRecordsResponse, StorageDealRecordsResponse } from "@textile/grpc-powergate-client/dist/powergate/user/v1/user_pb"; import { Config } from "../types"; import { DealRecordsOptions } from "./types"; export { DealRecordsOptions }; export interface Deals { /** * List storage deal records for the user according to the provided options. * @param opts Options that control the behavior of listing records. * @returns A list of storage deal records. */ storageDealRecords: (opts?: DealRecordsOptions) => Promise; /** * List retrieval deal records for the user according to the provided options. * @param opts Options that control the behavior of listing records. * @returns A list of retrieval deal records. */ retrievalDealRecords: (opts?: DealRecordsOptions) => Promise; } /** * @ignore */ export declare const createDeals: (config: Config, getMeta: () => grpc.Metadata) => Deals;