import type { CommonImportParameters } from '@sap/ux-specification-types'; import { v2 } from '@sap/ux-specification-types'; import type { Definition } from 'typescript-json-schema'; /** * Flex change structure for the transfer to the flexiblity utils */ export type FlexForTransfer = { controlId: string; controlType: string; propertyId: string; facetId?: string; newValue: any; creation: string; }; export interface FlexChangesForTransfer { [controlId: string]: FlexForTransfer; } export type ConfigTableType = v2.ResponsiveTable | v2.TreeTable | v2.AnalyticalTable | v2.GridTable | v2.TableALP; /** * Checks whether a given flex change applies to a given table column. If this is the case the change is filled into the config. * * @param {ConfigTableType} config - the table configuration * @param {FlexForTransfer} change - the flex change * @param {string} columnKey - the column key. If the column key is not equal to the column id of the change, the change will not be added to the column. * @param {object} customColumn - the custom column. If set, the property of the change will be added to the given column. */ export declare function addFlexChangeToConfigTableColumn(config: ConfigTableType, change: FlexForTransfer, columnKey: string, customColumn?: object): void; /** * Fills a table column flex change into the config, if it is relevant for the table. * * @param {ConfigTableType} config - the table configuration * @param {FlexForTransfer} change - the flex change * @param lineItemsDefinition - the definition of line items in the schema */ export declare function addFlexChangeToConfigTable(config: ConfigTableType, change: FlexForTransfer, lineItemsDefinition: Definition): void; /** * Imports the flex changes for a table column. * * @param {CommonImportParameters} importParameters - common import parameters * @param {v2.ListReportConfigV} listReportConfig - the list report configuration * @param {string} columnKey - the column key * @param {object} customColumn - optional: the custom column * @param {string} lineItemsId - the line items id */ export declare function importFlexChangesOfColumn(importParameters: CommonImportParameters, listReportConfig: v2.ListReportConfigV2, columnKey: string, customColumn?: object, lineItemsId?: string): void; //# sourceMappingURL=table.d.ts.map