import type { ContextOperationRequest } from '../context.ts'; import type { EngineInternals } from './internals.ts'; import type { ActivityFunctionWithMetadata } from './operations-activity.ts'; type ActivityOperation = Extract; /** * Resolve the activity callable along with its attached metadata (compensation, * verification). Returns `undefined` when no registry and no `operation.fn` * resolve the name — the metadata path treats a miss as advisory rather than * fatal. */ export declare function getActivityFunctionWithMetadata(internals: EngineInternals, workflowId: string, operation: ActivityOperation): ActivityFunctionWithMetadata | undefined; /** * Resolve the activity function for a given operation. Uses the same * per-workflow-first-then-global ordering as `getActivityFunctionWithMetadata`. * For inline-mode callers that pass an `operation.fn` directly, the registries * are still consulted first so a workflow's locally-scoped activity wins over * the bare callable. Throws `ActivityResolutionError` when neither path * resolves. */ export declare function resolveActivityFunction(internals: EngineInternals, workflowId: string, operation: ActivityOperation): (...arguments_: unknown[]) => unknown; export {};