/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ValueTypeOf } from "@elaraai/east"; import { SheetPayloadType } from "@elaraai/e3-ui/internal"; import { type SheetWords } from "../words.js"; import { type SheetLastCommit } from "./inspector.js"; /** The renderer's payload, decoded. */ export type SheetValue = ValueTypeOf; /** Props of {@link EastChakraSheet}. */ export interface EastChakraSheetProps { /** The payload, decoded. */ value: SheetValue; /** The structural storage key. */ storageKey: string; } /** * The record's last commit (SB22, SB51): its newest commit's time, as the * day's time when it was today and in full otherwise, and who made it — what * a Sheet's footer and inspector say, and a Record's (#1531). * * @param history - The payload's `history`: over a record, its commits, newest first; `none` over `data` * @param words - The sheet's words * @returns The last commit, or `undefined` over `data`, while the commits are unread, or when there are none */ export declare function useLastCommit(history: SheetValue["history"], words: SheetWords): SheetLastCommit | undefined; /** * Renders the Sheet — see the module docs. * * @param props - The payload and its storage key * @returns The sheet, in its frame */ export declare function EastChakraSheet({ value, storageKey }: EastChakraSheetProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=index.d.ts.map