import { type Transaction, type TransactionStatusCode, type TransactionsRecord } from "@olenbetong/appframe-updater"; import type { Server } from "../lib/Server.js"; import type { TransactionsEditorRefreshOptions } from "./useTransactions.js"; type UseTransactionEditsOptions = { normalizedTransactions: Transaction[]; transactionRecordMap: Map; selectedPrimKeys: Set; server: Server; onActionMessage?: (message: string | null, color: "gray" | "red" | "yellow" | "green") => void; refresh: (options?: TransactionsEditorRefreshOptions) => Promise | void; }; type UseTransactionEditsResult = { pendingStatuses: Record; modifiedPrimKeys: Set; cycleStatus: (focusedPrimKey: string | null, options?: { exclusive?: boolean; }) => void; save: (options?: { primKey?: string | null; }) => Promise; saving: boolean; }; export declare function useTransactionEdits({ normalizedTransactions, transactionRecordMap, selectedPrimKeys, server, onActionMessage, refresh, }: UseTransactionEditsOptions): UseTransactionEditsResult; export {};