/*!
Copyright © 2024 Open Text Corporation, All Rights Reserved.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
import { Config } from '../models/control-config';
import { OcpdFormClientAPIService } from './ocpd-form-client-api-service';
import { OcpdStringLocalizationHelper } from './ocpd-string-localization';
import { LocaleDataDesignerControlToolBox } from '../models/localization-types';
import { OcpdItemManagerHelper } from './ocpd-item-manager-helper';
import { OcpdBaseSchemaService } from './ocpd-base-schema-service';
import { OcpdConfigurationManager } from './ocpd-configuration-manager';
export declare class OcpdAvailableComponents {
    private static _instance;
    components: Config[];
    localeData: LocaleDataDesignerControlToolBox;
    _ocpdStringLocalizationHelper: OcpdStringLocalizationHelper;
    private config;
    _ocpdBaseSchemaService: OcpdBaseSchemaService;
    _ocpdConfigurationManager: OcpdConfigurationManager;
    constructor();
    getComponents(): Config[];
    buildComponents(): void;
    updateAccordionConfig(): this;
    updateIFrameConfig(): this;
    updateActionBarConfig(): this;
    updateButtonConfig(): this;
    updateCheckboxConfig(): this;
    updateControlContainerConfig(): this;
    updatePropertyBagConfig(): this;
    updateTableConfig(): this;
    updateDateConfig(): this;
    updateDatetimeConfig(): this;
    updateHFlexConfig(): this;
    updateImageConfig(): this;
    updateImageButtonConfig(): this;
    updateIntegerConfig(dataType: string, label: string, useDefaultPlaceholder: boolean, maxValue?: number): this;
    updateLabelConfig(): this;
    updateLinkConfig(): this;
    updateRTFConfig(): this;
    updateNumberConfig(dataType: string, label: string, useDefaultPlaceholder: boolean): this;
    updateRadiogroupConfig(): this;
    updateResponsiveFormsGridConfig(numberOfColumns?: number): this;
    updateSectionConfig(): this;
    updateSelectboxConfig(): this;
    updateComboboxConfig(): this;
    updateMultiSelectConfig(): this;
    updateSimpleListConfig(): this;
    updateSeparatorConfig(): this;
    updateTabConfig(): this;
    updateTextareaConfig(): this;
    updateTextboxConfig(): this;
    updateTitleConfig(title: string): this;
    updateToggleSwitchConfig(): this;
    updateUploadConfig(): this;
    updateUserControlConfig(): this;
    addDesignerGridConfig(numberOfColumns?: number): this;
    toggleRearrangeControlsForSmallScreens(rearrangeControlsForSmallScreens: boolean): this;
    updateVFlexConfig(): this;
    getControlByType(type: string, dataType?: string): this;
    addModelToItemState(_ocpdItemManagerHelper: OcpdItemManagerHelper): this;
    addGridChildConfig(): this;
    panelIndex(panelIndex: number): this;
    isContainer(isContainer: boolean): this;
    parentId(parentId: string): this;
    getConfig(): Config;
    setConfig(config: Config): this;
    createControlConfig(type: string, isContainer: boolean, displayName: string): this;
    cloneConfig(): this;
    id(id: string): this;
    showLabel(show: boolean): this;
    dataType(dataType: string): this;
    getNewConfigId(): string;
    private generateConfig;
    userInterfaceLocaleChanged(): Promise<void>;
    getColumnDropSize(config: Config): number;
    getRowDropSize(config: Config): number;
    getControlTypeAndDataType(prop: any, rootProp: any): {
        type: string;
        dataType?: string;
    };
    getConfigFromAvailableComponents(type: any, dataType: any): Config;
    addUserControlProperties(config: Config, dataType: any): void;
    addDataGridColumns(config: Config, propertyName: string, propertyObject: any, additionalSchemas?: any[], localizer?: OcpdFormClientAPIService): void;
    filterColumns(allColumns: any): any;
    getRequired(isRequired: boolean, propertyObject: any): boolean;
    isRequired(requiredArray: any, propertyName: string): boolean;
    isRepeating(propertyObject: any): boolean;
    isReadOnly(config: Config, propertyObject: any): boolean;
    getTooltipText(propertyObject: any, propertyPath: string, localizer?: OcpdFormClientAPIService): any;
    getTitleText(propertyObject: any, propertyPath: string, localizer?: OcpdFormClientAPIService): any;
    getPlaceholderText(propertyObject: any, propertyPath: string, localizer?: OcpdFormClientAPIService): any;
    getPropertyNameFromPropertyPath(propertyPath: string): string;
    getControlFromSchemaProperty(propertyPath: string, propertyObject: any, isRequired: boolean, schemaId: any, additionalSchemas?: any[], localizer?: OcpdFormClientAPIService): Config;
    extractChildControls(_ocpdItemManagerHelper: OcpdItemManagerHelper, config: Config): void;
    getConfigForDeleteColumn(itemId: string, parentId: string, ocpdFormClientApiService: OcpdFormClientAPIService): Config;
    getLocaleDataForDelete(): Record<string, {
        delete: string;
    }>;
    /**
     * Set localizations for delete column action in data grid
     * @param localizations Localizations object to be updated
     * @param supportedLocales List of supported locales
     * @param dataGridId Data grid control id
     */
    setLocalizationsForDeleteColumn(localizations: any, supportedLocales: string[], dataGridId: string): void;
}
export declare class ControlConfiguration {
    isSupportedInPallete: boolean;
}
