import { type BuilderFrameDock, type EditIssue } from "@elaraai/east-ui-components"; import { type KeyVisibility } from "../shared/schedule/visibility.js"; import { type RosterViewsProps } from "./views.js"; import type { RosterFind } from "./fit.js"; import { type Issue, type PlacedDuties, type PlacedTargets } from "./model.js"; /** The Find fixes, as the inspector offers them (#1334): only with the app's fit, and reading `Finding…` while their find is asked. */ export interface FindFixes { /** Whether the app bound a fit: without one no Find fix is offered, though `Roster.check` still reports its issue (R2). */ offered: boolean; /** Whether this find is asked and its answer has not landed (R4). */ finding: (asked: RosterFind) => boolean; } /** * A refusal holding Save (#1525), as the Roster says it: the app's `ready` refusing a drafted duty, named by its * person, day and shift — or by its key, for a duty the Roster can't place — and its field by its form's label. */ export interface RosterRefusal { /** The duty kind's slot, or the record's key, whose session refuses. */ readonly kind: string; /** The refusal's issue: its entry's key's text, its field and the app's message. */ readonly issue: EditIssue; /** Its duty in words: `A. Morgan · Thu 9 Mar · Early`. */ readonly title: string; /** Its field and the app's message: `Cost centre: Choose the cost centre`. */ readonly text: string; } type Args = RosterViewsProps & { storageKey: string; tab: string; onTab: (tab: string) => void; find: FindFixes; /** The week's duties as drafted, and as stored: each one's row. */ duties: PlacedDuties; heldDuties: PlacedDuties; /** The week's targets as drafted: each slot's row. */ targets: PlacedTargets; /** Every refusal holding Save, of every week's drafts (#1525): listed ahead of the rule issues, and over its duty's form. */ refusals: readonly RosterRefusal[]; /** A refusal pressed: its duty shown on its day and selected. */ onRefusal: (refusal: RosterRefusal) => void; /** Whether a choice of the viewer's narrows who shows, and how many people the page holds (#1621): what the Summary counts out of. */ peopleShown: Pick; }; export declare function RosterIssues({ props, issues }: { props: Args; issues: readonly Issue[]; }): import("react/jsx-runtime").JSX.Element; /** Inspector structure and headings reuse Plan's slots; no implementation paths appear in the UI. */ export declare function useRosterInspector(args: Args): BuilderFrameDock | undefined; export {}; //# sourceMappingURL=inspector.d.ts.map