import type { IMastraLogger } from '../../../logger/index.js';
import type { CoreTool, ToolPayloadTransformPolicy } from '../../../tools/types.js';
/**
 * Apply the in-process tool payload transform policy to a chunk before the
 * durable layer publishes it. Mirrors `addToolPayloadTransformToChunk` in the
 * non-durable agentic-execution layer, restricted to the chunk types that the
 * durable loop emits (`tool-call`, `tool-result`, `tool-error`).
 *
 * The transform policy is only available for in-process durable runs (it
 * carries a closure that cannot be serialized into the workflow input). When
 * the policy is missing or the chunk is not tool-shaped, the chunk is
 * returned unchanged.
 */
export declare function applyToolPayloadTransformToChunk<TChunk extends {
    type: string;
    payload?: any;
}>(chunk: TChunk, opts: {
    policy?: ToolPayloadTransformPolicy;
    tools?: Record<string, CoreTool>;
    logger?: IMastraLogger;
}): Promise<TChunk>;
//# sourceMappingURL=apply-tool-payload-transform.d.ts.map