import "./_dnt.polyfills.js"; import { type Func } from "./func.js"; type BasePath = Array; /** * 对象异步代理者 * * ```ts * const val = await async_proxyer(Promise.resolve(1)) // 1 * ``` * ```ts * const val = await async_proxyer(Promise.resolve((a,b)=>{ * return a+b * }))(1,2) // 3 * ``` * ```ts * const val = await async_proxyer(Promise.resolve({ * a: { * b: "b" * } * })).a.b // "b" * ``` * ```ts * const val = await async_proxyer(Promise.resolve({ * a: { * fn: async ()=>{ return "fn" } * } * })).a.fn() // "fn" * ``` * @param obj * @param ready * @returns */ export declare const async_proxyer: (ready: PromiseLike, proxyConfig?: { type?: "object" | "class" | "function" | "arrow-function" | object | Func | (new (...args: any[]) => any); basePath?: BasePath; has?: (prop: string | symbol, basePath: BasePath) => boolean; getOwnPropertyDescriptor?: (prop: string | symbol, basePath: BasePath) => PropertyDescriptor | undefined; getPrototypeOf?: (basePath: BasePath) => object | undefined; isExtensible?: (basePath: BasePath) => boolean; ownKeys?: (basePath: BasePath) => Array; }, thisArg?: PromiseLike) => Awaited; export {}; //# sourceMappingURL=proxy.d.ts.map