import { type Instruction, type ReadonlyUint8Array } from '@solana/kit'; import type { JobsInstructionName } from './computeUnits.generated.js'; /** The number of leading bytes that make up an Anchor instruction discriminator. */ export declare const DISCRIMINATOR_LENGTH = 8; /** The 8-byte Anchor discriminator for each named jobs instruction. */ export declare const DISCRIMINATORS: Record; /** Hex-encode the first {@link DISCRIMINATOR_LENGTH} bytes of a byte array. */ export declare function discriminatorHex(bytes: ReadonlyUint8Array): string; /** * Identify a jobs instruction by matching its 8-byte Anchor discriminator. * * Works on any raw {@link Instruction} regardless of how it was built, so it can * identify instructions in a mixed batch. Returns `undefined` for instructions * that are not recognised jobs instructions. * * @param instruction The instruction to identify. * @returns The jobs instruction name, or `undefined` if unrecognised. * @group @nosana/kit */ export declare function getJobsInstructionName(instruction: Instruction): JobsInstructionName | undefined; //# sourceMappingURL=discriminators.d.ts.map