/** * The default maximum number of top-level instructions per planned transaction message. * * This is intentionally lower than the transaction format's instruction limit (see * {@link TRANSACTION_INSTRUCTION_LIMIT}) to leave headroom for inner instructions * (CPIs), which are not visible at planning time. */ export declare const DEFAULT_MAX_INSTRUCTIONS_PER_TRANSACTION = 16; /** * Resolves the effective maximum number of instructions allowed in a transaction message. * * Falls back to 16 when no value is provided. The * provided value is expected to be a positive integer no greater than the transaction format's * instruction limit; validate it first with {@link assertValidMaxInstructionsPerTransaction}. */ export declare function resolveMaxInstructions(maxInstructions: number | undefined): number; /** * Asserts that a configured maximum number of instructions per transaction is valid. * * A configured maximum must be a positive integer no greater than the number of top-level * instructions the transaction format can encode (see {@link TRANSACTION_INSTRUCTION_LIMIT}). * Rejects values that are not positive integers. `undefined` is allowed and falls back to * the default. * * @throws {@link SOLANA_ERROR__INSTRUCTION_PLANS__INVALID_MAX_INSTRUCTIONS_PER_TRANSACTION} */ export declare function assertValidMaxInstructionsPerTransaction(maxInstructions: number | undefined): void; /** * Throws if `numInstructions` exceeds `maxInstructions`. * * @throws {@link SOLANA_ERROR__INSTRUCTION_PLANS__MAX_INSTRUCTIONS_PER_TRANSACTION_EXCEEDED} */ export declare function assertMaxInstructionsPerTransaction(numInstructions: number, maxInstructions: number): void; //# sourceMappingURL=max-instructions.d.ts.map