import type { Keypair } from "@solana/web3.js"; export interface ExternalSigner { /** Wallet controlled by this signer for identity-bound transactions. */ readonly walletAddress?: string; signMessage(message: Uint8Array): Promise; /** Sign canonical Solana v1 bytes without changing any message field; return all required signatures. */ signTransaction(txBytes: Uint8Array): Promise; } export type SigningStrategy = { type: "native"; keypair: Keypair; } | { type: "walletAdapter"; signer: ExternalSigner; } | { type: "privy"; walletId: string; walletAddress?: string; }; /** Local keypair strategy required by explicit wrap and unwrap-all planning. */ export type NativeSigningStrategy = Extract; /** * Return the native strategy required by standalone WSOL conversion planning. * * A wallet-adapter or Privy strategy returns a validation error. Conversion * planners call this guard before RPC reads. Ordinary planners do not call it and * can build unsigned plans for external strategies. Submission requires verifiable * signed v1 bytes, so Privy sign-and-send transaction submission is unavailable. */ export declare function requireNativeSigningStrategy(strategy: SigningStrategy): NativeSigningStrategy; /** Return the wallet identity this strategy can prove before signing. */ export declare function signingStrategyWalletAddress(strategy: SigningStrategy): string | undefined; export declare function isUserCancellation(error: string): boolean; //# sourceMappingURL=signing.d.ts.map