import type { ProviderProxy, RawProvider, TransactionRequestBody, TransactionResponse } from '@rarimo/provider'; import { Providers } from '@rarimo/provider'; import { BaseSolanaProvider } from './base-solana'; /** * @description Represents a Phantom wallet. * * @example * ```js * import { createProvider } from '@rarimo/provider' * import { PhantomProvider } from '@rarimo/providers-solana * * const getPhantomWalletAddress = async () => { * // Connect to the Phantom wallet in the browser, using the PhantomProvider interface to limit bundle size. * const provider = await createProvider(PhantomProvider) * await provider.connect() * * // Get the address of the wallet * console.log(provider.address) * } * ``` */ export declare class PhantomProvider extends BaseSolanaProvider implements ProviderProxy { /** * @description In most cases, instead of using this constructor, pass the PhantomProvider class to {@link @rarimo/provider!createProvider}. */ constructor(provider?: RawProvider); static get providerType(): Providers; signAndSendTx(txRequestBody: TransactionRequestBody): Promise; }