import { GetNftResponse, SendTransactionParams, SmartContract } from "./types"; import { RippinPlugin } from "./types/plugin"; import { Blockchain, MasterNft, Project, ProjectUser } from "./types/projects"; export declare class RippinClient { baseUrl: string; projectId: string; constructor({ environment, projectId, }: { environment: "dev" | "sandbox" | "production"; projectId: string; }); /** * Initialize a Rippin plugin. * @param plugin * @returns */ use: (plugin: RippinPlugin) => this; /** @internal */ _createHeaders: () => Promise>; /** @internal */ _fetch: (path: string, { body, headers, ...options }?: Omit & { body?: Record; }) => Promise; /** @internal */ _fetchFormData: (path: string, { body, headers, ...options }?: Omit & { body?: FormData; }) => Promise; /** * Get Project with id _id_ */ getProject: ({ id }: { id: string; }) => Promise; /** * Create a "user" wallet associated with the project used to instantiated the SDK. * * @param externalId - [recommended] parameter to add an external association within Rippin. * This allows the developer to interact with wallets using their preferred ID scheme. */ createUserWallet: (externalId?: string) => Promise; /** * Get a "user" wallet by external ID. * * @param externalId */ getUserWalletByExternalId: (externalId: string) => Promise; /** * Revoke Project ApiKey with id _id_ */ revokeProjectApiKey: ({ id, projectId, }: { id: string; projectId: string; }) => Promise<{ success: boolean; }>; getProjectNfts: ({ projectId }: { projectId: string; }) => Promise; createProjectNft: ({ data, media, projectId, name, maxSupply, smartContractId, }: { data?: Record; media?: File; projectId: string; name: string; maxSupply?: string | number; smartContractId?: string; }) => Promise; getNft: ({ id }: { id: string; }) => Promise; updateNft: ({ data, id, media, name, maxSupply, }: { data?: Record; id: string; media?: File; name?: string; maxSupply?: string | number; }) => Promise; updateNftMedia: ({ id, body }: { id: string; body: FormData; }) => Promise<{}>; updateNftMetadata: ({ id, body }: { id: string; body: FormData; }) => Promise<{}>; getSmartContractsByProject: ({ projectId }: { projectId: string; }) => Promise<{ data: SmartContract[]; }>; /** * For Solana, tx is a Base64 encoded serialized transaction * @returns */ sendTransaction: (body: SendTransactionParams) => Promise; /** * Proxy RPC requests for the selected blockchain. Currently only supports Polygon. * * Note: this is not meant for large scale usage. */ proxyRpc: (body: { blockchain: Blockchain; method: string; params: any[]; }) => Promise; } //# sourceMappingURL=client.d.ts.map