import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import type { PitProgram } from "../program.js"; /** * Parameters for creating a claim_fees instruction */ interface ClaimFeesParams { /** Week number of the market */ weekNumber: number; /** Operator's public key (must be market's operator) */ operator: PublicKey; /** Operator's wSOL account (receives fees) */ operatorWsolAccount: PublicKey; /** wSOL vault (from MarketState.wsolVault) */ wsolVault: PublicKey; /** wSOL mint address */ wsolMint: PublicKey; /** Token program (usually SPL Token) */ tokenProgram: PublicKey; } /** * Create a claim_fees instruction for operator to withdraw collected trading fees * * This instruction is operator-only. * * @param program - Anchor Program instance * @param params - Claim fees parameters * @returns Promise resolving to TransactionInstruction * * @example * ```typescript * import { createProgram, createClaimFeesInstruction, WSOL_MINT } from "@pit-protocol/sdk"; * import { TOKEN_PROGRAM_ID } from "@solana/spl-token"; * * const program = createProgram(provider); * const ix = await createClaimFeesInstruction(program, { * weekNumber: 1, * operator: operatorKeypair.publicKey, * operatorWsolAccount: operatorWsolAta, * wsolVault: market.wsolVault, * wsolMint: WSOL_MINT, * tokenProgram: TOKEN_PROGRAM_ID, * }); * * const tx = new Transaction().add(ix); * await sendAndConfirmTransaction(connection, tx, [operatorKeypair]); * ``` */ export declare function createClaimFeesInstruction(program: PitProgram, params: ClaimFeesParams): Promise; export {}; //# sourceMappingURL=claimFees.d.ts.map