import type { ProjectWithPermission, TaskItem, TaskDependency } from "../types";
export type TaskDetailAgentLaunchAction = {
    onClick: () => void | Promise<void>;
    label: string;
    variant: "play";
    disabled?: boolean;
    disabledReason?: string;
};
export declare function TaskDetailPanel(props: {
    project: ProjectWithPermission | null;
    projects?: ProjectWithPermission[];
    task: TaskItem | null;
    allTasks: TaskItem[];
    dependencies: TaskDependency[];
    onTaskChanged: () => void | Promise<void>;
    onSelectTask: (taskId: string) => void;
    onClose: () => void;
    variant?: "panel" | "dialog";
    agentLaunch?: TaskDetailAgentLaunchAction;
    collapsed?: boolean;
    showExpandButton?: boolean;
    onToggleCollapsed?: () => void;
}): import("react").JSX.Element;
