import type { ChatMessage, CursorState } from './types.js';
export interface AgentCompletionReadinessDeps {
    isSubscribed(agentId: string): boolean;
    getSubscribeTitle(agentId: string): string | undefined;
    getDisplayMessages(agentId: string): ChatMessage[];
    getJsonlHistory(agentId: string): ChatMessage[];
    getClientTurnLimit?(agentId: string): number;
}
export interface AgentCompletionReadinessOpts {
    /** Sidebar loader already off for this agent (DOM list). */
    sidebarIdle?: boolean;
}
/**
 * Push when opening the chat shows a complete turn.
 * When sidebar is idle, do not block on `lenta-pending` (DOM overlay may still churn seq).
 */
export declare function assessAgentCompletionReadiness(agentId: string, state: CursorState, deps: AgentCompletionReadinessDeps, opts?: AgentCompletionReadinessOpts): {
    ready: boolean;
    detail: string;
};
