/*! 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 { OcpdLocalizationService } from './ocpd-localization-service'; import { OcpdComponentRegister } from './ocpd-component-register'; import { Config } from '../models/control-config'; import { Model } from './ocpd-item-manager-helper'; import { OcpdFormSchemaManager } from './ocpd-form-schema-manager'; import { FormDefinition, FormDefinitionContentDesign, FormContentDesignLocalization } from '@opentext/forms-common'; export declare class OcpdFormClientAPIService { private static _instance; supportedLocales: string[]; allControlIds: any[]; activeSchema: any; activeAdditionalSchemas: any[]; activeFormData: FormDefinition; activeDesign: FormDefinitionContentDesign; activeDesignObject: FormDefinitionContentDesign; designLocalizations: Record>; schemaLocalizations: Record; additionalSchemaLocalizations: Record; _ocpdComponentRegister: OcpdComponentRegister; _ocpdLocalizationService: OcpdLocalizationService; _schemaItemId: string; static readonly PRECISION_SUPPORTED_DATATYPES: string[]; static readonly SCALE_SUPPORTED_DATATYPES: string[]; constructor(); hasActiveForm(): boolean; setActiveDesign(): void; setActiveSchema(): void; setActiveAdditionalSchemas(): void; getActiveAdditionalSchemaByRef(ref: string): any; getActiveFormData(): FormDefinition; getSchemaItemId(): string; getDesign(): FormDefinitionContentDesign; getSchema(): any; getAdditionalSchemas(): any[]; getDefaultLocale(): string; getLocalizedDesignControlObject(locale: string, id: string): FormContentDesignLocalization; getSchemaPropertyObject(propertyPath: string, withSchemaId?: boolean): any; getLocalizedSchemaPropertyObject(locale: string, propertyPath: string): any; findSchemaPropertyObject(propertyPath: string, schema?: any, additionalSchemas?: any[], withSchemaId?: boolean): any; addSchemaPropertyObject(propertyPath: string, propertyObject: any, isRequired?: boolean): void; removeSchemaPropertyObject(propertyPath: string): void; private addPropertyToSchema; private removePropertyFromSchema; extractPropertyValueInDesignControlObject(designControlObject: FormContentDesignLocalization, path: string): string; extractLocalizedPropertyFromSchemaPropertyObject(schemaPropertyObject: any, path: string): any; extractPropertyValueInSchemaPropertyObject(schemaPropertyObject: any, path: string): any; getLocalizedPropertyValue(locale: string, propertyPath: string, id: string, propertyType: string, path: string, ocpdFormSchemaManager: OcpdFormSchemaManager): string; getSchemaTitle(): any; getCurrentFormLocale(): string; setCurrentFormLocale(locale: string, notifyExternalClient?: boolean): Promise; getValueForPath(object: any, path: string): any; setActiveForm(ocpdFormSchemaManager: OcpdFormSchemaManager, notifyExternalClient?: boolean): Promise; setLocales(localeDefinition: any): void; private setUserInterfaceLocales; getSupportedLocales(): string[]; updateLocalizableProperty(propertyPath: string, itemId: string, value: any, currentFormLocale: string): void; setLocalizedDesignProperty(propertyPath: string, localizedDataObject: FormContentDesignLocalization, value: any): void; setActiveDesignerControlObject(): void; setLocalizationsFromActiveForm(): void; updateDefaultLocaleInDesign(designTimeConfig: FormDefinitionContentDesign): FormDefinitionContentDesign; deleteDefaultLocaleFromDesignLocalizations(designLocalizations: Record>): Record>; processJSON(controls: Model[], locale: string): void; processControl(controlObject: Config, locale: string): void; getValueFromControlObject(textHeldInConfig: any): any; buildDefaultLocaleLocalizationObject(controlObject: FormDefinitionContentDesign): void; buildLocalizationJSON(controls: Model[], locale: string): void; processControlLocalization(controlObject: Model, locale: string): void; deleteMissingControlsFromDesignLocalizations(designLocalizations: Record>): Record>; doesControlStillExist(id: string): boolean; setLocalizationsInActiveForm(schemaLocalizations?: Record, additionalSchemaLocalizations?: Record, designLocalizations?: Record>, formSchemaLocalizations?: Record, additionalFormSchemaLocalizations?: Record): void; convertToArray(additionalFormSchemaLocalizations: any): any[]; doesModelExist(id: string): boolean; addModel(model: Model): void; removeModel(elementId: string): void; isPropertyNameInUse(propertyName: string, checkAdditionalSchemas?: boolean): boolean; getLocalizedModelSchema(): any; getLocalizedFormSchema(isFormSchemaCreated: boolean): any; getLocalizedMergedSchema(isFormSchemaCreated: boolean): any; getLocalizedDesign(): FormDefinitionContentDesign; isRequired(propertyName: string): boolean; getRequiredArray(propertyName: string): string[]; isCurrentLocaleDefaultLocale(): boolean; }