import type { Address, Instruction } from '@solana/kit'; import type { JobsInstructionName } from './computeUnits.generated.js'; /** A decoded jobs instruction: its name plus its labelled accounts and arguments. */ export interface DecodedJobsInstruction { /** The jobs instruction name (e.g. `'list'`, `'delist'`). */ name: JobsInstructionName; /** * The instruction's accounts keyed by their program-defined role name * (e.g. `accounts.job`, `accounts.run`, `accounts.market`). */ accounts: Record; /** The decoded instruction arguments (values may include `bigint`). */ data: Record; } /** * Decode a jobs instruction into its name and labelled accounts/arguments. * * This is what lets a bulk `sendBatch` caller recover the accounts an instruction * created or acted on — for example the freshly generated `job` and `run` * addresses of a `list` — without threading that state through by hand. Account * keys match the program's account names. * * @param instruction The instruction to decode. * @returns The decoded instruction, or `undefined` if it is not a recognised * jobs instruction (or cannot be decoded). * @group @nosana/kit */ export declare function decodeJobsInstruction(instruction: Instruction): DecodedJobsInstruction | undefined; //# sourceMappingURL=decode.d.ts.map