/** * Handler execution — pipeline step 4. * * Calls the resolved handler's `execute` with a fully assembled * `RemoteContext`: validated params, auth context, optional bound self, * typed deps, and a kernel `BoundClientSessionView`. The handler may return a * value, a Promise, or an async generator (for `output: 'stream'`). */ import type { FnMap } from '@astrale-os/kernel-client'; import type { BoundClientSessionView } from '@astrale-os/kernel-client/session'; import type { AuthContext } from '@astrale-os/kernel-core'; import type { Defer, Sleep } from '@astrale-os/kernel-server'; import type { FunctionContextApi } from '../auth/function-context.js'; import type { DomainAuthority } from '../auth/issuer-mint.js'; import type { CallerContext, RemoteEnv } from '../method/context.js'; import type { Step } from '../step/index.js'; import type { SelfResult, TypedSelf } from './self.js'; type HandlerFn = (...args: any[]) => any; export type ExecuteParams = { /** Handler may omit `execute` when authored as a stub (spec-only binding). */ handler: { execute?: HandlerFn; }; /** Namespaced ref of the dispatched method — names the offending method in the * stub-leak diagnostic below (the dispatcher passes `bound.ref`). */ ref?: string; params: Record; auth: AuthContext | null; /** Untyped fallback ({@link withNode}) or the rich typed self ({@link withBoundNode}). */ self: SelfResult | TypedSelf | undefined; deps: unknown; env: RemoteEnv; kernel: BoundClientSessionView | null; caller?: CallerContext; /** Mint seam for identities this domain issues. */ domain: DomainAuthority; fn: FunctionContextApi; step: Step; defer: Defer; sleep: Sleep; }; export declare function executeHandler(ctx: ExecuteParams): Promise; export {}; //# sourceMappingURL=execute.d.ts.map