UNPKG

@itwin/core-common

Version:

iTwin.js components common to frontend and backend

33 lines 1.04 kB
import { BackendReadable } from "../../internal/BackendTypes"; import { RpcProtocol } from "./RpcProtocol"; /** @internal */ export interface MarshalingBinaryMarker { isBinary: true; index: number; size: number; chunks: number; } /** @internal */ export declare namespace MarshalingBinaryMarker { function createDefault(): MarshalingBinaryMarker; } /** @internal */ export interface RpcSerializedValue { objects: string; data: Uint8Array[]; chunks?: number; stream?: BackendReadable; } /** @internal */ export declare namespace RpcSerializedValue { function create(objects?: string, data?: Uint8Array[]): RpcSerializedValue; } /** @internal */ export declare class RpcMarshaling { private constructor(); /** Serializes a value. */ static serialize(protocol: RpcProtocol | undefined, value: any): RpcSerializedValue; /** Deserializes a value. */ static deserialize(protocol: RpcProtocol | undefined, value: RpcSerializedValue): any; } //# sourceMappingURL=RpcMarshaling.d.ts.map