import { v2, ViewTemplateType } from '@sap/ux-specification-types'; import type { FileData } from '@sap/ux-specification-types'; import type { TransferParameterTypeV2 } from '../../types'; export declare const FRAGMENT_DEFINITION = "core:FragmentDefinition"; export declare const SAP_UI_TABLE = "sap.ui.table"; /** * Method which receives fragment definition node and reads root column definition. * * @param {unknown} definition - Application or Page Config object. * @param {unknown} fragment - fragment definition * @returns {unknown | undefined} Root column read from definition. */ export declare function getRootCustomColumnFromFragmentJSON(definition: unknown, fragment?: unknown): string | unknown | undefined; /** * Identifies the right extensions based on a pattern, then deletes all corresponding columns and cells. * * @param manifestSection - Section in manifest.json comprising the extensions * @param pattern - Search string to identify the extension in manifest * @param appId - application ID * @param fragments - list of all fragments */ export declare function deleteColumnFromFragment(manifestSection: object, pattern: string, appId: string, fragments: FileData[]): void; /** * The function transfers ALL properties of one or more custom columns to a given fragment, or creates a new one if necesary. * * @param transferParamsV2 - list of input parameters for the recursive function call * @param manifestPath - path to the current section of the manifest that describes the extension * @param config - current config part, describing the new image of the extension * @param viewTemplateType - name of the view template that shall be applied */ export declare function exportCustomColumnsToFragment(transferParamsV2: TransferParameterTypeV2, manifestPath: string, config: v2.TableCustomColumns, viewTemplateType: ViewTemplateType): void; /** * Determines the manifest path of a column extension. * * @param page Page object from manifest. * @param entitySet Table's entity set. * @param [additionalKey] Key provided when defining the FacetID or QuickVariantSelectionX. * @param [tableColumnExtensionType] Column extension type. * @returns Path to the column extension in the manifest. */ export declare const getCustomColumnPath: (page: v2.SapUiAppPageV2, entitySet: string, additionalKey?: string, tableColumnExtensionType?: string) => { path: string; viewTemplateType: ViewTemplateType; }; //# sourceMappingURL=Fragment.d.ts.map