import { PublicKey } from "@solana/web3.js"; import { Idl } from "../../idl.js"; import { SimulateFn } from "./simulate.js"; import { AllInstructions, InstructionContextFn, MakeInstructionsNamespace } from "./types"; export default class ViewFactory { static build>(programId: PublicKey, idlIx: AllInstructions, simulateFn: SimulateFn, idl: IDL): ViewFn | undefined; } export type ViewNamespace = AllInstructions> = MakeInstructionsNamespace>; /** * ViewFn is a single method generated from an IDL. It simulates a method * against a cluster configured by the provider, and then parses the events * and extracts return data from the raw logs emitted during the simulation. */ export type ViewFn = AllInstructions> = InstructionContextFn>; //# sourceMappingURL=views.d.ts.map