import { CellValue, ColumnConfigInput, EventPayload } from './proto/service_pb'; export interface TreelabConfig { token?: string; endPoint?: string; } export interface FlatTableData { [rowId: string]: FlatRowData; } export interface FlatRowData { [columnId: string]: CellValue.AsObject; } export interface UpdateRowDTO { workspaceId: string; coreId: string; tableId: string; rowId: string; rowData: FlatRowData; } export interface AddColumnsDTO { workspaceId: string; coreId: string; tableId: string; columnConfigs: ColumnConfigInput.AsObject[]; } export declare enum ColumnType { TEXT = "TEXT", RECORD_REFERENCE = "RECORD_REFERENCE", NUMBER = "NUMBER", MULTI_SELECT = "MULTI_SELECT", SELECT = "SELECT" } export interface ColumnConfig { type: ColumnType; name: string; order?: number; visibility?: boolean; foreignTableId?: string; defaultNumber?: number; precision?: number; choices?: Choice[]; } export interface Choice { id: string; name: string; color: string; } export declare enum ViewType { GRID = "GRID" } export interface Value { type: ColumnType; text?: string; foreignRowId?: string; number?: number; selectedItems?: string[]; selectedItem?: string; } export interface Resource { workspaceId: string; coreId?: string; tableId?: string; viewId?: string; columnId?: string; dashboardId?: string; branchId?: string; rowId?: string; } export declare type EventCallback = (e: EventPayload.AsObject) => any; export declare type FilterFn = (value: any, index: number, array: any[]) => any; export declare type SortFn = (a: any, b: any) => number; export declare enum Color { lightRed = "lightRed", blue = "blue", red = "red", gray = "gray", magenta = "magenta", yellow = "yellow", orange = "orange", green = "green", black = "black", pink = "pink", purple = "purple", lightBlue = "lightBlue", lightGray = "lightGray", lightMagenta = "lightMagenta", lightYellow = "lightYellow", lightOrange = "lightOrange", lightGreen = "lightGreen", lightBlack = "lightBlack", lightPink = "lightPink", lightPurple = "lightPurple" } export declare enum Icon { briefcase = "briefcase", untitle = "untitle", asterisk = "asterisk", barChart = "barChart", check = "check", circleBlank = "circleBlank", cloud = "cloud", barcode = "barcode", beaker = "beaker", bell = "bell", bolt = "bolt", book = "book", bug = "bug", building = "building", bullhorn = "bullhorn", calculator = "calculator", calendar = "calendar", camera = "camera", sun = "sun", flow = "flow", coffee = "coffee", handUp = "handUp", anchor = "anchor", cogs = "cogs", comment = "comment", compass = "compass", creditCard = "creditCard", dashboard = "dashboard", edit = "edit", food = "food" }