import { ExternalDisplayConditionsApi } from './api/ExternalDisplayConditionsApi'; import { BaseValidatedClass } from './BaseValidatedClass'; import { DisplayCondition } from './modifications/ImmutableNode'; interface ExternalDisplayConditionsLibraryMap { getCategoryName(): string; openExternalDisplayConditionsDialog(_currentCondition: DisplayCondition, _successCallback: ExternalDisplayConditionSelectedCB, _cancelCallback: () => void): void; getIsContextActionEnabled(): boolean; getContextActionIndex(): number; } export type ExternalDisplayConditionSelectedCB = (condition: DisplayCondition) => void; export interface ExternalDisplayConditionCategory { type: string; category: string; } export declare class ExternalDisplayConditionsLibrary extends BaseValidatedClass implements ExternalDisplayConditionsLibraryMap { api: ExternalDisplayConditionsApi; /** List of methods that must be implemented by subclasses */ private static readonly REQUIRED_METHODS; constructor(); /** * Retrieves the name of the category. * * @return {string} The name of the category. */ getCategoryName(): string; /** * Opens a popup dialog for creating or updating a display condition. * * @param {DisplayCondition} _currentCondition - The currently selected display condition to edit. * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success. * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes. */ openExternalDisplayConditionsDialog(_currentCondition: DisplayCondition, _successCallback: ExternalDisplayConditionSelectedCB, _cancelCallback: () => void): void; /** * Determines if the context action associated with this library is enabled. * * @returns {boolean} `true` if the context action is enabled, otherwise `false`. */ getIsContextActionEnabled(): boolean; /** * Retrieves the index of the context action associated with this library. * The index represents the position/order of the action in the UI. * * @returns {number} The index of the context action. */ getContextActionIndex(): number; } export {};