/**
 * Abort-aware async execution utility.
 *
 * Replaces the Promise+async-IIFE anti-pattern used in file tools.
 */
/** Sent back to the LLM as the tool result text when a tool is interrupted. */
export declare const ABORT_AGENT_MESSAGE = "User interrupted the operation.";
/**
 * Run an async function with abort signal support.
 * Rejects with ABORT_AGENT_MESSAGE if the signal fires.
 * The `checkAborted` callback throws if abort happened between awaits.
 */
export declare function withAbort<T>(signal: AbortSignal | undefined, fn: (checkAborted: () => void) => Promise<T>): Promise<T>;
//# sourceMappingURL=abort.d.ts.map