import { Config } from '../../api_client/config'; import { CallBodyNode } from '../../core/action'; import { EnvironmentType } from '../../core/enums'; import { KwilSigner } from '../../core/kwilSigner'; import { MsgReceipt } from '../../core/message'; import { GenericResponse } from '../../core/resreq'; import { Kwil } from '../kwil'; export declare class NodeKwil extends Kwil { private tempCookie; constructor(opts: Config); /** * Calls a Kwil node. This can be used to execute read-only ('view') actions on Kwil. * If the action requires authentication in the Kwil Gateway, the kwilSigner should be passed. If the user is not authenticated, the user will be prompted to authenticate. * * @param {CallBodyNode} actionBody - The body of the action to send. This should use the `CallBody` interface. * @param {KwilSigner} kwilSigner (optional) - KwilSigner should be passed if the action requires authentication OR if the action uses a `@caller` contextual variable. If `@caller` is used and authentication is not required, the user will not be prompted to authenticate; however, the user's identifier will be passed as the sender. * @returns An Object[] with the result of the action */ call(actionBody: CallBodyNode, kwilSigner?: KwilSigner): Promise>>; /** * set the temp cookie to reset it after the call * * @param {string} cookie - The temporary cookie * @returns the temporary cookie to handle for Node */ private setTemporaryCookie; /** * Resets the temporary cookie * * @param {string} tempCookie - the temporary cookie to be reset */ private resetTempCookie; }