export declare const AGENT_TERMINAL_BLUR_GRACE_MS = 350;
/** Whether an event target is (or is inside) the agent terminal. */
export declare function isAgentTerminalTarget(target: EventTarget | null): boolean;
/**
 * Next value for the "last agent terminal interaction" timestamp given an
 * interaction (pointer-down or focusin) on `target`. Interactions outside the
 * terminal reset the timestamp so the grace window only survives while the
 * LAST interaction was inside the terminal — otherwise a quick terminal focus
 * followed by a click elsewhere would shield that click's legitimate
 * focused-field clear.
 */
export declare function nextAgentTerminalInteractionAt(target: EventTarget | null, now: number): number;
/**
 * Decide whether a field blur was caused by moving focus into the agent
 * terminal, so the focused field (and its agent context chip) should be kept.
 */
export declare function isAgentTerminalFocusTransfer(params: {
    lastAgentTerminalInteractionAt: number;
    now: number;
    graceMs?: number;
}): boolean;
