import { SYMBOL, State } from "./tabela.model.mjs"; import { Key, PlainObject } from "@oscarpalmer/atoms/models"; export type DataManager = { handlers: TabelaData; state: State; store: DataManagerStore; get keys(): Key[]; get rows(): Key[]; get size(): number; destroy(): void; }; type DataManagerStore = { keys: DataManagerDataKeys; values: DataValues; }; type DataManagerDataKeys = { all: DataManagerDataKeysValue; row: DataManagerDataKeysValue; }; type DataManagerDataKeysValue = { active?: Key[]; original: Key[]; }; export type DataUpdate = "add" | "set" | "remove" | "update"; export type DataValue = string | PlainObject; type DataValues = { array: DataValue[]; mapped: Map; }; export type TabelaData = { [SYMBOL]: State; add(data: PlainObject[]): Promise; clear(): Promise; get(active?: boolean): PlainObject[]; remove(keys: Key[]): Promise; remove(data: PlainObject[]): Promise; set(data: PlainObject[]): Promise; synchronize(data: PlainObject[], remove?: boolean): Promise; update(data: PlainObject[]): Promise; }; export declare const DATA_UPDATE_ADD: DataUpdate; export declare const DATA_UPDATE_SET: DataUpdate; export declare const DATA_UPDATE_REMOVE: DataUpdate; export declare const DATA_UPDATE_UPDATE: DataUpdate; export {};