import type { SessionPlan } from "../store/plan.js"; import type { ToolCall } from "../types.js"; export interface ResponderParentAccepted { readonly ok: true; readonly taskId: string | undefined; readonly source: "declared" | "active-fallback" | "none"; } export interface ResponderParentRejected { readonly ok: false; readonly reason: string; } export type ResponderParentResolution = ResponderParentAccepted | ResponderParentRejected; export declare function readDeclaredParentTaskId(call: ToolCall): string | undefined; export declare function resolveResponderParent(input: { readonly plan: SessionPlan | undefined; readonly declared: string | undefined; readonly activeForegroundTaskIds: readonly string[]; }): ResponderParentResolution; export declare function isExplicitResponderDelegation(call: ToolCall): boolean; export declare function delegationTaskTitle(call: ToolCall): string;