/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The action buttons: an action column's cells, its Menu and its form, a case taken on a row or down a range as one * transaction, the strip over an action, the inspector's action field, and a phone's bottom container — the ring's action * bar, or its cell editor. * * @packageDocumentation */ import { type ReactNode } from "react"; import { type SheetActionHost } from "./actions/host.js"; import type { SheetHost } from "./parts.js"; import type { SheetDecode } from "./use-decode.js"; import type { SheetSession } from "./use-session.js"; import type { SheetBody } from "./use-body.js"; import type { SheetMachine } from "./use-machine.js"; import type { SheetWrites } from "./use-writes.js"; import type { SheetEffects } from "./use-effects.js"; import type { SheetInput } from "./use-input.js"; /** * Builds the action column's host and what it opens (see the module docs). * * @param host - What the frame hands the parts * @param sheetDecode - The decoded columns, layout, callbacks, narrowing and row source * @param sheetSession - The store, the lens, the paging, the session and the rows * @param sheetBody - The body, the row space and the cells at each place * @param sheetMachine - The machine's context and dispatch * @param sheetWrites - The cell writes, the removal and the proposals' inserts * @param sheetEffects - The effect runner and what its effects reach * @param sheetInput - The cells' and the grid's handlers * @returns The action host, its overlay, the phone's bar and cell editor */ export declare function useSheetActions(host: SheetHost, sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetWrites: SheetWrites, sheetEffects: SheetEffects, sheetInput: SheetInput): { actionBar: import("react/jsx-runtime").JSX.Element | undefined; actionOverlayNode: import("react/jsx-runtime").JSX.Element | null; cellEditor: ReactNode; drawAction: (r: number, key: string) => ReactNode; rowActions: SheetActionHost | undefined; }; /** What {@link useSheetActions} gives the parts after it. */ export type SheetActions = ReturnType; //# sourceMappingURL=use-actions.d.ts.map