import { Transaction, VersionedTransaction } from '@solana/web3.js'; export interface SignableSolanaAdapter { publicKey?: { toBase58(): string; } | null; signTransaction?: ((tx: Transaction | VersionedTransaction) => Promise) | undefined; wallet?: { accounts: ReadonlyArray<{ address: string; }>; features: Record; } | undefined; } /** * Sign raw Solana tx bytes → raw signed bytes. Sign-only (the relay broadcasts). * Prefers the Wallet Standard feature (no Transaction object → avoids the * serialize() crash on some mobile WebViews); falls back to the adapter signer * for legacy wallets. `connectedAddress` (from the iframe child) wins over the * adapter publicKey, which can drift. The caller verifies the message wasn't * altered (see InjectedConnector Path 1). */ export declare function signSolanaBytes(adapter: SignableSolanaAdapter, serializedTx: Uint8Array, connectedAddress?: string): Promise; //# sourceMappingURL=signSolanaBytes.d.ts.map