/** * 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 RowHidden } 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 { /** * What hides a bin on the board, as far as e3 has said: each source that does, in the slice's order. * * @param bin - The bin, as Search Records found it * @returns What hides it; `undefined` for a bin the narrowing shows */ of(bin: FoundBin): readonly RowHidden[] | undefined; /** * Asks e3 which choices hide the bins a listing holds that the narrowing hides: each source's question of the rows * they stand on, one request a question. * * @param bins - The bins, as the box lists them */ ask(bins: readonly FoundBin[]): 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