import { Observable, Subject } from 'rxjs'; import * as i0 from '@angular/core'; import { EventEmitter } from '@angular/core'; import { LfLocalizationService } from '@laserfiche/lf-js-utils'; import { ValidatorFn } from '@angular/forms'; /** * @internal * Not for public use */ declare class LfLoaderComponent { /** @internal */ private localizationService; readonly LOADING: Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @internal * Not for public use */ declare class LfPopupModalComponent { data: PopupModalData; buttonClick: EventEmitter; /** @internal */ onConfirmClick(): void; /** @internal */ onCancelClick(): void; /** @internal */ onNoClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** @internal */ interface PopupModalData { popupTitle: Observable; popupMessage: Observable; confirmButtonText?: Observable; cancelButtonText?: Observable; noButtonText?: Observable; data?: any; } /** @internal */ declare enum PopupModalResult { CONFIRM = "CONFIRM", NO = "NO", CANCEL = "CANCEL" } /** @internal */ declare class AppLocalizationService { localResources: Map; resourceLibraryResources: Map; localLocalizationService: LfLocalizationService; lfCommonLocalizationService: LfLocalizationService; internalGetString: Subject; constructor(); setLanguageAsync(language: string): Promise; languageChanged(): Observable; get currentLanguage(): string | undefined; getStringLaserficheObservable(key: string, params?: string[]): Observable; getStringComponentsObservable(key: string, params?: string[]): Observable; getStringLaserficheWithObservableParams(key: string, params?: Observable[]): Observable; getStringComponentsWithObservableParams(key: string, params?: Observable[]): Observable; getResourceStringLaserfiche(key: string, params?: string[]): string; getResourceStringComponents(key: string, params?: string[]): string; private addParamsToString; getString(key: string, params?: string[]): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** @internal */ declare enum ValidationRule { LONG_INT = "longint", MAX_LENGTH = "maxlength", NUMBER = "number", PATTERN = "pattern", NUMERIC = "numeric", REQUIRED = "required", SHORT_INT = "shortint", TIME = "time", DATEPICKER_PARSE = "datepickerParse", DATETIME_PICKER_PARSE = "datetimePickerParse" } /** @internal */ declare class ValidationUtils { /** Only one error will be displayed at a time (in this priority order) */ static validationRulesInPriorityOrder: ValidationRule[]; static numericValidator(constraint: string): ValidatorFn; static generalRegexValidator(regex: RegExp, ruleName?: string): ValidatorFn; static requiredValidator(): ValidatorFn; static createTimeValidator(): ValidatorFn; } interface ObjectWithName { name: string; } /** @internal */ declare function filterObjectsByName(nodesToFilter?: T[], filterText?: string): T[] | undefined; /** * @internal * Not for public use */ declare class GeneralDialogLayoutComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** @internal */ declare enum LfMessageToastTypes { Error = "Error", Warning = "Warning", Validation = "Validation", Informational = "Informational" } /** @internal */ interface LfToastMessage { message: string; timeToShow?: number; type: LfMessageToastTypes; noIcon: boolean; hideMessage?: boolean; id?: string; } /** @internal */ declare class LfToastMessageComponent { private ref; set messages(messages: LfToastMessage[]); allMessages: LfToastMessage[]; constructor(); _computeTypeIcon(type: LfMessageToastTypes): string; _closeToast(messageId?: string): void; _removeToast(messageId?: string): void; clearToasts(toastFilter?: LfMessageToastTypes): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { AppLocalizationService, GeneralDialogLayoutComponent, LfLoaderComponent, LfMessageToastTypes, LfPopupModalComponent, LfToastMessageComponent, PopupModalResult, ValidationRule, ValidationUtils, filterObjectsByName }; export type { LfToastMessage, PopupModalData };