import { PublicKey } from '@solana/web3.js'; import type { Connection } from '@solana/web3.js'; export interface SpendAuthorityState { address: string; owner: string; agent: string; token_mint: string; per_tx_cap_usd: number; daily_cap_usd: number; spent_today_usd: number; remaining_today_usd: number; revoked: boolean; } /** PDA `[spend_authority, owner, agent]` (contract spend.rs). */ export declare function spendAuthorityPda(owner: PublicKey, agent: PublicKey): PublicKey; /** * Fetch + decode a SpendAuthority account, or null when the owner has not * created one. Layout (spend.rs): disc(8) ++ owner(32) ++ agent(32) ++ * token_mint(32) ++ per_tx_cap(u64) ++ daily_cap(u64) ++ spent_today(u64) ++ * day_index(u64) ++ revoked(u8) ++ bump(u8). All whitelisted stablecoins have * 6 decimals, so base units convert to USD with 1e6. */ export declare function fetchSpendAuthority(connection: Connection, owner: PublicKey, agent: PublicKey): Promise; //# sourceMappingURL=spend.d.ts.map