import { JsonRpcRequest } from 'json-rpc-engine'; import { IEthErrors, IEthereumRpcError } from 'eth-rpc-errors/@types'; interface ErrorArg { message?: string; data?: JsonRpcRequest | any; } interface MethodNotFoundArg extends ErrorArg { methodName?: string; } declare function unauthorized(arg?: ErrorArg): IEthereumRpcError>; declare const invalidReq: (opts?: string | import("eth-rpc-errors/@types").IErrorOptions | undefined) => IEthereumRpcError; declare const internalError: (opts?: string | import("eth-rpc-errors/@types").IErrorOptions | undefined) => IEthereumRpcError; declare function methodNotFound(opts: MethodNotFoundArg): IEthereumRpcError>; declare function userRejectedRequest(request?: JsonRpcRequest): IEthereumRpcError>; export { unauthorized, methodNotFound, invalidReq, internalError, userRejectedRequest, IEthErrors };