import * as i0 from '@angular/core'; import { OnChanges, AfterViewInit, ChangeDetectorRef, EventEmitter, ElementRef, QueryList, Renderer2, SimpleChanges } from '@angular/core'; import { DestroyCtor, I18nCtor } from '@usitsdasdesign/dds-ng/core/common-behaviors'; import { ThemeClassesMap } from '@usitsdasdesign/dds-ng/core/theme'; import { InputComponent } from '@usitsdasdesign/dds-ng/input'; import { Size, Themes } from '@usitsdasdesign/dds-ng/shared'; import { DdsConfigService } from '@usitsdasdesign/dds-ng/shared/dds-config'; import { I18nService, ITranslation } from '@usitsdasdesign/dds-ng/shared/i18n'; declare const ColorpickerBase: DestroyCtor & I18nCtor; declare class ColorpickerComponent extends ColorpickerBase implements OnChanges, AfterViewInit { cdr: ChangeDetectorRef; i18n: I18nService; private renderer; private ddsConfig; presetColors: string[] | undefined; automaticColor: string | undefined; activeColor: string | undefined; size: Size | string | undefined; theme: Themes | string | undefined; enableEmptyColor: boolean | undefined; enableCustomColor: boolean | undefined; enableRecentColors: boolean | undefined; enableAutomaticColor: boolean | undefined; isInverse: boolean | undefined; get recentColors(): string[] | undefined; set recentColors(colors: string[] | undefined); changeColor: EventEmitter; colorpickerWrap: ElementRef; customColorField: InputComponent; colorItems: QueryList>; themeConfig: ThemeClassesMap; customColor: string; invalidColorText: string; ariaLabelCustomColorField: string; ariaLabelColorBtn: string; ariaLabelEnterColor: string; ariaLabelNoColor: string; ariaLabelApplyBtn: string; validColorText: string; customColorLabelText: string; customColorDescriptionText: string; noColorText: string; automaticText: string; recentColorsText: string; applyBtnText: string; isNoColorSelected: boolean; private updAriaDescribedTimer; constructor(cdr: ChangeDetectorRef, i18n: I18nService, renderer: Renderer2, ddsConfig: DdsConfigService); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; selectColor(hexColor: string, colorEl: HTMLElement): void; setCustomColor(color: string): void; applyColor(): void; isLightColor(hexColor: string): boolean; isDarkColor(hexColor: string): boolean; private setActiveColor; private updAriaDescribedBy; private resetAllActiveColors; private setRecentColors; private getRecentColors; protected setI18nTexts(translation: ITranslation): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ColorpickerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const DEFAULT_PALETTE: string[]; declare const DEFAULT_AUTOMATIC_COLOR = "#26890D"; declare const RECENT_COLORS_STORAGE_KEY = "dds-recent-colors"; declare const ACTIVE_COLOR_CLASS_NAME = "dds-colorpicker__color-view_active"; declare const DARK_THRESHOLD = 25; declare const LIGHT_THRESHOLD = 240; declare const themeClassesMap: ThemeClassesMap; interface ColorpickerOptions { presetColors?: string[]; automaticColor?: string; activeColor?: string; size?: Size | string; theme?: Themes | string; recentColors?: string[]; enableEmptyColor?: boolean; enableCustomColor?: boolean; enableRecentColors?: boolean; enableAutomaticColor?: boolean; isInverse?: boolean; } export { ACTIVE_COLOR_CLASS_NAME, ColorpickerComponent, ColorpickerModule, DARK_THRESHOLD, DEFAULT_AUTOMATIC_COLOR, DEFAULT_PALETTE, LIGHT_THRESHOLD, RECENT_COLORS_STORAGE_KEY, themeClassesMap }; export type { ColorpickerOptions };