/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * `Split…` (`Allocation Spec.md` A71, #1332, #1362): an anchored popover over * the shared one, which the Inspector's Assigned to and the narrow cards (A78) * each open from a trigger of their own. It holds the quantity — with some of * the bin unallocated, what it places, that by default and at most; with all * of it on its resources, what it takes off a part, half of it by default; one * typed past what it takes refused, the field saying the bound — * and the resource it goes to, through the shared Chooser, every section of it * the fit's answer for that quantity (A73), the bin's own resources left out. * A choice is the board's `split`: one step that Undo takes back. * * @packageDocumentation */ import { type ReactElement } from "react"; import { type option } from "@elaraai/east"; import { type AllocationCommands } from "./actions.js"; import { type AllocationFit } from "./fit.js"; import { type InspectorWords } from "./inspector-model.js"; import { type Bin, type Context, type Day } from "./model.js"; /** `Split…`'s props: the bin, what the board knows and can do, and its trigger. */ export interface SplitProps { id: string; bin: Bin; /** The part it takes off when nothing is left: a resource card's own; the bin's largest when omitted. */ from?: string | undefined; context: Context; /** The day as drafted: a draft asks the fit again. */ plan: Day; commands: AllocationCommands; fit: AllocationFit; words: InspectorWords; /** The resources the narrowing shows; `none`, every one. */ shown: option>; /** Its trigger, one button, given the popover's label for its title. */ trigger: (label: string) => ReactElement; } /** * `Split…` (see the module docs). * * @param props - See {@link SplitProps} * @returns The popover on its trigger, or nothing for a bin there is nothing to split of */ export declare function SplitPopover({ id, bin, from, context, plan, commands, fit, words, shown, trigger }: SplitProps): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=split.d.ts.map