/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ type Styles = Record>; export interface InsertionActions { row?: (() => void) | undefined; group?: (() => void) | undefined; ordered: boolean; groupOrdered: boolean; preview?: ((kind: "row" | "group" | undefined) => void) | undefined; /** A row here is a LINE — a grouped sheet's (the sheet's words say which, #861). */ line: boolean; /** What a group is called — the host's noun (#844). */ noun: string; } /** Where the chips of the hovered seam sit, in the card's coordinates. */ export interface InsertSeam { /** The row-space index of the row below the seam. */ r: number; /** * In the gutter's actions column, unless an action button occupies that * column on either row the seam divides; then on the body side of the * gutter edge, so nothing overlaps. */ side: "gutter" | "body"; /** The row boundary (px from the card's top). */ top: number; /** Where the chips start (px from the card's left). */ left: number; } /** * A SEAM: a hit strip centred on the row boundary across the gutter. It * draws nothing. Hovering it names the seam to the sheet, whose insertion * layer ({@link SheetInsertLayer}) then shows the chips there. */ export declare function SheetInsertPoint({ styles, side, onEnter, onLeave }: { styles: Styles; side: "gutter" | "body"; onEnter: (hit: HTMLElement) => void; onLeave: (to: EventTarget | null) => void; }): import("react/jsx-runtime").JSX.Element; /** * The sheet's ONE insertion layer: the hovered seam's two chips — row (plus) * and group (layer-group), 24 px outlined — laid over the rows at the seam. * The layer sits above every row and under the pinned header, so no row's * content (a cell editor, the ring, the row above) ever covers the chips. * Keyboard activation never types into the sheet. */ export declare const SheetInsertLayer: import("react").ForwardRefExoticComponent<{ styles: Styles; seam: InsertSeam; actions: InsertionActions; onLeave: (to: EventTarget | null) => void; } & import("react").RefAttributes>; /** A visible alternative to the gutter controls when whole rows are selected — in the sheet's words (#861). */ export declare function SheetInsertStrip({ styles, ordered, above, below, group, noun }: { styles: Styles; ordered: boolean; above?: (() => void) | undefined; below?: (() => void) | undefined; group?: (() => void) | undefined; /** The host's word for a group (#844); the sheet's own when it declares none. */ noun?: string | undefined; }): import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=Insertion.d.ts.map