import type { ModelMessage, ToolSet, TypedToolResult } from "ai";
import { type AuthorizationSignal } from "#harness/authorization.js";
/** Returns whether an inline tool result represents a pending authorization interrupt. */
export declare function isInlineAuthorizationToolResult(toolResult: TypedToolResult<ToolSet>): boolean;
/**
 * Resolves authorization interrupts and keeps only protocol-complete sibling
 * calls from the response that produced them.
 */
export declare function resolveInlineAuthorizationInterrupt(input: {
    readonly messages: readonly ModelMessage[];
    readonly toolResults: readonly TypedToolResult<ToolSet>[] | undefined;
}): {
    readonly challenges: AuthorizationSignal["challenges"];
    readonly history: ModelMessage[];
} | undefined;
