import ref from '@eleccookie/ref-napi';
import { FFIResult, MethodType, ErrMsgStruct } from '../types';
/**
 * Handles the response from an FFI call from libmovevm shared library.
 *
 * @param method - The FFI method to invoke.
 * @param errMsg - A pointer to the ErrMsg structure for capturing errors.
 * @param args - Additional arguments to pass to the method.
 * @returns A Promise resolving with the FFI result or rejecting with an error.
 */
export declare function handleResponse(method: MethodType, errMsg: ref.Pointer<ErrMsgStruct>, ...args: unknown[]): Promise<FFIResult>;
/**
 * Creates and initializes a raw ErrMsg structure.
 *
 * @returns A pointer to the initialized ErrMsg structure.
 */
export declare function createRawErrMsg(): ref.Pointer<ErrMsgStruct>;
