import type { ReactNode } from 'react'; /** * The amounts a field offers, in one row. * * A buy offers three sums, a sell offers three parts of a holding and all of * it, and a limit card offers a price and three steps off it. One row, and * written three times it came apart at the height, at the fill and at what an * unavailable one looks like. * * A press writes into the field above and nothing else follows from it. There * is no chosen state: the figure above is the answer, and a chip lit beside it * would be a second one. */ /** * Which panel the row stands in, which is the whole of what differs between the * two of them. * * Inside a sum the row is the card's own second decision, so it is centred under * the figure. Beside a leg it qualifies the field next to it rather than * carrying the screen, so it takes the rung inline material takes. Measured on * the design reference, which draws these at 37 on its buy and sell cards and * at 28 on its limit card. One word at the call site, because the alternative is * six style props repeated wherever the second row is wanted. * * Both wear the same skin: the page's own darker fill under a hairline. The sum * tier carried a lifted fill and no line for a while and read as four buttons * rather than as four offers under a figure. */ export type Under = 'sum' | 'leg'; export interface Preset { /** What tells this chip from the others in the row. */ key: string; /** What the chip says. */ label: ReactNode; /** * What pressing it does. * * Absent where there is nothing a press would do — a part of a holding nobody * has quoted, a price this screen cannot compute — and the chip is then named * and off. What a press means belongs to the screen: the row draws chips and * knows nothing about the field they fill. */ press?: () => void; } export declare function Presets({ presets, under, about, }: { presets: readonly Preset[]; under?: Under; /** * The element carrying the reason a chip cannot be pressed, where a screen * has one. Written once and pointed at by every chip it is true of: a reason * repeated on each is four sentences where a reader wanted four words. * * Only the chips that are off point at it. A row is not always all one way — * a holding covers a quarter and not the whole of it — and a sentence about * why nothing can be pressed, read out on the one chip that can, is a false * statement in the place a reader has least reason to doubt it. */ about?: string; }): import("react").JSX.Element; //# sourceMappingURL=preset.d.ts.map