import type { CallType } from "./agencyFunction.js"; import { type Run } from "./asyncContext.js"; /** * Runtime dispatcher for every Agency call site. Generated code emits * `__call(target, descriptor)` (or `__callMethod(obj, prop, descriptor)`) * and this helper figures out whether `target` is an `AgencyFunction` * (named-arg aware, preapprove handler wiring) or a plain TS callable. * * `run` is the run the call site runs under. An Agency function is handed * it, and makes its own child run from it. A plain TypeScript function is * called with its arguments only. */ export declare function __call(run: Run, target: unknown, descriptor: CallType, optional?: boolean): Promise; export declare function __callMethod(run: Run, obj: unknown, prop: string | number, descriptor: CallType, optional?: boolean): Promise;