import type { ToolContext } from '../../types/tool-context';
/**
 * Run a function with ToolContext available via `getToolContext()`.
 * Called by the interceptor to wrap workflow execution.
 */
export declare function runWithToolContext<T>(ctx: ToolContext, fn: () => Promise<T>): Promise<T>;
/**
 * Retrieve the ToolContext for the current execution scope.
 *
 * Activities: reads from headers (injected by activity interceptor).
 * Workflow scope: reads from AsyncLocalStorage (set by workflow interceptor).
 * Returns undefined when no identity is available.
 */
export declare function getToolContext(): ToolContext | undefined;
