/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { option } from "@elaraai/east"; import { type HiddenWhy, type RowHiding } from "../shared/schedule/hidden.js"; import type { FoundBin } from "./find.js"; import type { AllocationValue } from "./model.js"; /** * What each source the rail narrows shows, as the board's layout draws a bin: `none` for a source that hides no bin * there — the resources' on the Timeline's lanes, the lanes' and the arrivals' on a phone's Timeline of resources. */ export interface BinShown { readonly lanes: option>; readonly resources: option>; readonly arrivals: option>; } /** The hidden pick over the bins Search Records finds. */ export interface HiddenBins { /** * The sources that hide a bin as the board draws it, in the slice's order, each with the row of it the bin stands on * there: what Search Records asks e3 of and words a bin's line by (`shared/schedule/search-records.ts`). * * @param bin - The bin, as Search Records found it * @returns The sources; none for a bin the narrowing shows */ hidingsOf(bin: FoundBin): readonly RowHiding[]; /** * Why a resource the board names on its own, which the resources' narrowing leaves out, is not shown, as far as e3 has * said (`hiddenWhy`): beyond the page's scope, or hidden by a choice of the viewer's. * * @param resource - The resource, by its key * @returns Why; `undefined` while e3 has not said, on a page whose resources hold a scope beside a choice */ whyResource(resource: string): HiddenWhy | undefined; /** * Asks e3 why some resources the board names, which the resources' narrowing leaves out, are not shown: each once at * the record's revision and the narrowing. * * @param resources - The resources, by their keys */ askResources(resources: readonly string[]): void; /** Moves as answers land and as what the narrowing shows moves: the box lists its lines again. */ readonly relist: number; } /** * The hidden pick over the bins Search Records finds (see the module docs). * * @param value - The payload: its slice, and the slots its sources are named by * @param shown - What each source shows, as the board's layout draws a bin * @returns The pick */ export declare function useHiddenBins(value: AllocationValue, shown: BinShown): HiddenBins; //# sourceMappingURL=hidden.d.ts.map