import { BlockReference } from '@meer-js/types'; import { FunctionCallOptions } from '../interface.js'; import { IntoConnection } from '../interface.js'; interface ViewFunctionCallOptions extends FunctionCallOptions { blockQuery?: BlockReference; } export declare class LocalViewExecution { private readonly connection; private readonly storage; constructor(connection: IntoConnection); private fetchContractCode; private fetchContractState; private fetch; private loadOrFetch; /** * Calls a view function on a contract, fetching the contract code and state if needed. * @param options Options for calling the view function. * @param options.contractId The contract account ID. * @param options.methodName The name of the view function to call. * @param options.args The arguments to pass to the view function. * @param options.blockQuery The block query options. * @returns {Promise} - A promise that resolves to the result of the view function. */ viewFunction({ contractId, methodName, args, blockQuery }: ViewFunctionCallOptions): Promise; } export {}; //# sourceMappingURL=index.d.ts.map