/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type BuilderFrameDock } from "@elaraai/east-ui-components"; import { type SourceShown } from "../shared/schedule/source-tab.js"; import type { RosterCommands } from "./actions.js"; import type { FitResult, Need } from "./fit.js"; import { type Coverage, type Pattern, type RosterStyles, type RosterValue, type Selection, type Slot, type Week } from "./model.js"; /** * A pattern's seven marks (#1406, ยง8): each day's shift in its colour token, its code on it; a day off faint. * * @param props - The payload's shifts, the pattern and the Roster's styles * @returns The strip */ export declare function PatternStrip({ value, pattern, styles }: { value: Pick; pattern: Pattern; styles: RosterStyles; }): import("react/jsx-runtime").JSX.Element; export declare function rosterLibraryId(key: string, tab: string): string; /** A Find fix's result in the People tab (#1334): what it looks for, the fit's answer, and whether that answer is still to land. */ export interface PeopleFind { /** What the find looks for: the chip's words. */ need: Need; /** The fit's answer for the drafts as they are, which the tab shows; `undefined` while it is on its way, or failed. */ shown: FitResult | undefined; /** Whether the find is asked and its answer for the drafts as they are has not landed: the tab is busy, showing what the rail shows. */ busy: boolean; } interface LibraryArgs { value: RosterValue; week: Week; start: Date; day: number; storageKey: string; narrow: boolean; styles: RosterStyles; commands: RosterCommands; selection: Selection | undefined; select: (next: Selection | undefined) => void; hours: ReadonlyMap; coverage: ReadonlyMap; /** A Find fix's result, shown in the People tab until its chip clears it. */ find: PeopleFind | undefined; onClearFind: () => void; tab: string | undefined; onTab: (tab: string) => void; /** What the rail shows of each source a tab follows, and how that source alone clears. */ shown: { people: SourceShown; activities: SourceShown; patterns: SourceShown; }; } /** * Install (or clear) the People cards probe. Test use only. * * @param fn - Told each time the cards are made; `undefined` clears it */ export declare function setRosterPeopleCardsProbe(fn: (() => void) | undefined): void; /** Optional library pane; every dataset stays the author's original bound data. */ export declare function useRosterLibrary(args: LibraryArgs): BuilderFrameDock | undefined; export {}; //# sourceMappingURL=library.d.ts.map