import { type Ref } from "vue"; import type { DataGridColumnInput, CreateClientRowModelOptions, DataGridRowNodeInput, DataGridTreeDataFilterMode } from "@affino/datagrid-core"; import type { DataGridPivotSpec } from "@affino/datagrid-pivot"; import { type UseDataGridRuntimeOptions, type UseDataGridRuntimeResult } from "../composables/useDataGridRuntime"; type MaybeRef = T | Ref; export type DataGridAppRuntimeMode = "base" | "tree" | "pivot" | "worker"; export interface UseDataGridAppRuntimeOptions { mode: MaybeRef; rows: Ref; columns: Ref; clientRowModelOptions?: Omit, "rows">; services?: UseDataGridRuntimeOptions["services"]; treeData?: { getDataPath: (row: TRow) => readonly string[]; filterMode?: DataGridTreeDataFilterMode; }; initialPivotModel?: DataGridPivotSpec | null; worker?: { rowInputs?: MaybeRef[]>; resolveRowInputs?: (rows: readonly TRow[]) => readonly DataGridRowNodeInput[]; resolveRowInputsOnDemand?: () => readonly DataGridRowNodeInput[]; rowInputsUpdateKey?: MaybeRef; createHostWorker?: () => Worker; columnarNumericFields?: readonly string[]; }; } export interface UseDataGridAppRuntimeResult { runtime: UseDataGridRuntimeResult; rowVersion: Ref; } export declare function useDataGridAppRuntime(options: UseDataGridAppRuntimeOptions): UseDataGridAppRuntimeResult; export {}; //# sourceMappingURL=useDataGridAppRuntime.d.ts.map