import { type ReactNode } from 'react'; /** * An identifier, short enough for a row and long enough to check against one * somebody already has. * * Drawn whole unless abbreviating it actually shortens it, which is why the * threshold is the length of the abbreviation rather than a number written * beside it: at thirteen characters the two are the same length, and replacing * a key with something no shorter loses the middle for nothing. */ export declare const short: (at: string) => string; /** * The magnifier. A circle and a stroke, drawn here rather than pulled from an * icon set, and it names its colour for the same reason every string above * does. */ export declare function Lens(): import("react").JSX.Element; /** * A run of rows under a heading, and whatever action belongs to that run. * * The title comes from the caller's reading rather than from this file: where * nothing stated an ordering there is no ordering to name, and the title says * so by not claiming one. * * Beside it goes an action and nothing else — no count, no pill, no word about * where the rows came from. A count changes on every keystroke with focus * nowhere near it, and a pill beside a heading reads as a state the list is in. */ export declare function List({ title, action, children, }: { title: ReactNode; action?: ReactNode; children: ReactNode; }): import("react").JSX.Element; /** * The action that empties a remembered list. * * A word rather than a mark, because it is the only thing on the panel that * takes something away and a glyph for that is a glyph a reader has to guess * at. */ export declare function Clear({ say, go }: { say: string; go: () => void; }): import("react").JSX.Element; /** * One result. * * One shape for every list, because they are the same row asking the same * thing: what this is, what it is called, what it is tickered, and the key it * is filed under. Three components would be three chances for the lists to * disagree about what a result looks like. * * A button rather than something wrapped in one — `render` puts a real `button` * element under the row, so Tab reaches it, Enter and Space press it, and the * focus ring is the browser's. The key is abbreviated on screen and read out * whole, since it is the only field that tells two things sharing three letters * apart. */ export declare function Result({ face, name, said, mark, note, at, go, }: { /** The mark of whatever the row is about. */ face: ReactNode; /** What it is called. */ name: string; /** What it is called when it is read out, where that is not what is drawn. A * row named by an abbreviated identifier identifies nobody. */ said?: string; /** A word qualifying the name, where the row has one. */ mark?: string; /** What it is tickered, where it is tickered anything. */ note?: string; /** The key it is filed under, drawn short and read whole. */ at?: string; go: () => void; }): import("react").JSX.Element; export interface SearchProps { /** * What the field asks for, in the reader's words. * * Worn by the trigger, by the dialog's own name and by the field's label and * placeholder, so a reader hearing the control and a reader seeing it are * told the same thing. */ say: string; open: boolean; onOpen: (next: boolean) => void; query: string; onQuery: (next: string) => void; /** * The lists on offer, where there is more than one kind of answer. * * Absent, there is one list and no row of words over it — a control with a * single option is a control that does nothing. */ lists?: readonly { key: string; label: ReactNode; }[]; /** Which of them is open. */ list?: string; onList?: (key: string) => void; /** What stands at the end of the field: a venue picker, a readout, nothing. */ beside?: ReactNode; /** * Where Enter goes, and only where exactly one row answers. * * Pasting an identifier leaves one, which is the whole reason this is here — * paste, Enter, done, without reaching for a pointer or tabbing past the list * to find the row. Null where there are several, because Enter into an * ambiguity has to pick, and picking for somebody is guessing. */ enter?: (() => void) | null; /** Whether the trigger carries its words and its keycap, or is the mark * alone. A header narrow enough to drop the words still opens the same * dialog. */ wide?: boolean; /** The answer: `List`s of `Result`s, and whatever the caller says about a * reading that has not landed or did not come back. */ children: ReactNode; } export declare function Search({ say, open, onOpen, query, onQuery, lists, list, onList, beside, enter, wide, children, }: SearchProps): import("react").JSX.Element; //# sourceMappingURL=search.d.ts.map