import type { State } from './peer/state.js'; import type { Method } from './peer/method.js'; import type { JSONRPCError } from './errors.js'; import type { ErrorType, ValueType } from './types.js'; export declare const getValue: (o: any, field: string) => any; export declare const errorObject: (err: JSONRPCError | ErrorType | string) => JSONRPCError | { code: number; message: string; data: ErrorType; }; export declare const isState: (stateOrMethod: State | Method) => stateOrMethod is State;