import type { LTEnvelope } from '../../types';
import type * as interceptorActivities from './activities';
import type { InterceptorState } from './types';
/**
 * The proxied activity functions available within the interceptor's
 * workflow sandbox. Same shape as the activities module, but every
 * call is routed through the durable activity worker.
 */
export type ProxiedActivities = typeof interceptorActivities;
/**
 * Build the stored envelope that preserves routing and task identity
 * across escalation re-runs.
 *
 * When a human (or AI) resolves an escalation, a new workflow is
 * started with this envelope — it carries the taskId and parent
 * routing so the interceptor can reconnect the dots.
 */
export declare function buildStoredEnvelope(state: InterceptorState): Record<string, any>;
/**
 * Extract the LTEnvelope from the raw HotMesh workflow context.
 */
export declare function extractEnvelope(ctx: Map<string, any>): LTEnvelope | undefined;
