import { AdaptorPackageData, Adaptor } from '../adaptor.mjs'; import { ToFunc } from './type.mjs'; type RemoteValueProps = Pick & { globalName: string; adaptor: Adaptor; timeoutMs?: number; log?: boolean; }; /** * @example * ``` * const obj = remoteValue<{ * a: number; * b: { * c: string; * }; * funcD: () => number * }>() * * const val_1 = await obj.a() // number * const val_2 = await obj.b() // { c: string } * const val_3 = await obj.b.c() // string * const val_4 = await obj.funcD() // number * ``` */ declare function remoteValue(props: RemoteValueProps): ToFunc; export { remoteValue };