/** * BSC trade preflight + quote helpers. * * Safety-first scope: * - No execution/signing here. * - Validate wallet/rpc/chain/gas/token before producing a quote. */ import type { BscTradePreflightResponse, BscTradeQuoteRequest, BscTradeQuoteResponse, BscUnsignedApprovalTx, BscUnsignedTradeTx } from "../contracts/wallet.js"; export declare const PANCAKE_SWAP_V2_ROUTER: string; export declare const BSC_WBNB_FALLBACK: string; export interface BscTradeRpcConfig { rpcUrls?: string[] | null; nodeRealBscRpcUrl?: string | null; quickNodeBscRpcUrl?: string | null; bscRpcUrl?: string | null; cloudManagedAccess?: boolean | null; } export interface BuildBscTradePreflightInput extends BscTradeRpcConfig { walletAddress: string | null; tokenAddress?: string | null; } export interface BuildBscTradeQuoteInput extends BscTradeRpcConfig { walletAddress: string | null; request: BscTradeQuoteRequest; } export declare function resolveBscRpcUrls(input: BscTradeRpcConfig): string[]; export declare function resolvePrimaryBscRpcUrl(input: BscTradeRpcConfig): string | null; export declare function readTokenDecimals(rpcUrls: string[], tokenAddress: string): Promise; export declare function buildBscTradePreflight(input: BuildBscTradePreflightInput): Promise; export declare function buildBscTradeQuote(input: BuildBscTradeQuoteInput): Promise; export declare function buildBscBuyUnsignedTx(quote: BscTradeQuoteResponse, recipientAddress: string | null, deadlineSeconds?: number): BscUnsignedTradeTx; export declare function buildBscSellUnsignedTx(quote: BscTradeQuoteResponse, recipientAddress: string | null, deadlineSeconds?: number): BscUnsignedTradeTx; export declare function buildBscApproveUnsignedTx(tokenAddress: string, ownerAddress: string | null, spenderAddress: string, amountWei: string): BscUnsignedApprovalTx; //# sourceMappingURL=bsc-trade.d.ts.map