import { RuntimeEvaluationResult } from '@mongosh/browser-runtime-core';
import type { DevtoolsConnectOptions } from '@mongosh/service-provider-server/lib/cli-service-provider';
export declare function serializeError(err: Error): Error;
export declare function deserializeError(err: any): Error;
export declare enum SerializedResultTypes {
    SerializedErrorResult = "SerializedErrorResult",
    InspectResult = "InspectResult",
    SerializedShellApiResult = "SerializedShellApiResult"
}
export declare function serializeEvaluationResult({ type, printable, source }: RuntimeEvaluationResult): RuntimeEvaluationResult;
export declare function deserializeEvaluationResult({ type, printable, source }: RuntimeEvaluationResult): RuntimeEvaluationResult;
export declare function serializeConnectOptions(options?: Readonly<DevtoolsConnectOptions>): DevtoolsConnectOptions;
export declare function deserializeConnectOptions(options: Readonly<DevtoolsConnectOptions>): DevtoolsConnectOptions;
