import type { StreamData, StreamDataResponse } from '@hotmeshio/hotmesh/build/types/stream';
import type { ToolContext } from '../../../types/tool-context';
/**
 * Build a ToolContext from the `_scope` input parameter.
 * YAML activities receive `_scope` threaded from the trigger through every step.
 */
export declare function buildToolContextFromScope(scope: Record<string, any>): ToolContext;
/**
 * Wrap a worker callback with scope injection via AsyncLocalStorage.
 * If `_scope` is present in the input data, builds a ToolContext and
 * wraps the callback so `getToolContext()` works inside tool code.
 */
export declare function wrapWithScope(callback: (data: StreamData) => Promise<StreamDataResponse>): (data: StreamData) => Promise<StreamDataResponse>;
