/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Which people and activities show (#1342): the Roster reads each source of its * `Slice.bindRecords` itself through the shared source visibility, and a source * with nothing chosen reads no page and hides nothing. Coverage, costs, checks * and the editing session never see it. */ import type { ValueTypeOf } from "@elaraai/east"; import type { RecordSliceBindType } from "@elaraai/east-ui/internal"; import { type KeyVisibility } from "../shared/schedule/visibility.js"; import type { RosterPayload } from "./model.js"; /** A narrowed source's name: what its rows are on the Roster — its people, its activities, or its week patterns (#1406). */ export type RosterNarrowed = "people" | "activities" | "patterns"; /** * A source's part of the Roster's narrowing, if the slice has one. * * @param value - The payload * @param source - The source * @returns Its record Slice's controls */ export declare function rosterPart(value: RosterPayload, source: RosterNarrowed): ValueTypeOf | undefined; /** * Which of a source's rows show: its narrowed keys while a choice narrows it, * every row while none does; the previous complete membership while a new one * resolves. * * @param value - The payload * @param source - The source * @returns The keys to show, and the narrowing's state */ export declare function useRosterVisibility(value: RosterPayload, source: RosterNarrowed): KeyVisibility; //# sourceMappingURL=visibility.d.ts.map