import { ParsedInstruction, PartiallyDecodedInstruction } from "@solana/web3.js"; import { AssociatedTokenAccountInstructionDescriptor } from "../instruction/associated-token-account"; import { MemoInstructionDescriptor } from "../instruction/memo"; import { StakeInstructionDescriptor } from "../instruction/stake"; import { SystemInstructionDescriptor } from "../instruction/system"; import { TokenInstructionDescriptor } from "../instruction/token"; import { PARSED_PROGRAMS } from "./constants"; type UnknownProgram = { program: typeof PARSED_PROGRAMS.UNKNOWN; title: "Unknown"; instruction: undefined; }; type ParsedProgram = { program: typeof PARSED_PROGRAMS.SYSTEM; title: string; instruction: SystemInstructionDescriptor; } | { program: typeof PARSED_PROGRAMS.SPL_ASSOCIATED_TOKEN_ACCOUNT; title: string; instruction: AssociatedTokenAccountInstructionDescriptor; } | { program: typeof PARSED_PROGRAMS.SPL_MEMO; title: string; instruction: MemoInstructionDescriptor; } | { program: typeof PARSED_PROGRAMS.STAKE; title: string; instruction: StakeInstructionDescriptor; } | { program: typeof PARSED_PROGRAMS.SPL_TOKEN; title: string; instruction: TokenInstructionDescriptor; } | { program: typeof PARSED_PROGRAMS.SPL_TOKEN_2022; title: string; instruction: TokenInstructionDescriptor; } | UnknownProgram; export declare const parse: (ix: ParsedInstruction | PartiallyDecodedInstruction) => ParsedProgram; export declare const parseQuiet: (ix: ParsedInstruction | PartiallyDecodedInstruction) => ParsedProgram; export {}; //# sourceMappingURL=parser.d.ts.map