import { FetchState } from '@zeniai/client-epic-state'; /** * Edge-triggered visibility controller for the TaskDetailPage subtask * creation form. * * The form should auto-close only on the In-Progress -> Completed * transition of `subTaskCreateStatus` (i.e. when a fresh create * succeeds). A level-trigger (`status === "Completed"`) is buggy: if * the user creates a subtask, then re-opens the form, the status is * still "Completed" from the previous create and the form would close * immediately. Mirrors the edge-trigger pattern in TaskListRow.tsx. * * Extracted to its own module so the race-condition unit test can * exercise the exact code path that ships in TaskDetailPage, instead * of a re-declared copy. */ export declare const useSubtaskFormVisibility: (subTaskCreateStatus: FetchState | undefined) => { isSubtaskFormVisible: boolean; setIsSubtaskFormVisible: (visible: boolean) => void; };