import { OBJECT_ID, REFERENCE_ID } from "./internal"; import { Proxied } from "./proxied"; import { RPCSession } from "./session"; /** * Provides a proxy for a remote object for which a reference is held by the local Conduit session. * This allows seamless async RPC calls and event (observable) subscriptions. */ export declare class RPCProxy { private constructor(); [OBJECT_ID]?: string; [REFERENCE_ID]?: string; /** * Construct a new proxy for the given object reference, which is held by the given Conduit session. * Any method calls to this proxy will be sent as Conduit method calls over the given session. * * @param session The session which owns the remote reference * @param objectId The unique ID of the remote object * @param referenceId The ID of the object reference that this remote object will hold. * @returns */ static create(session: RPCSession, objectId: string, referenceId: string): Proxied; }