import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, EventEmitter, ElementRef } from '@angular/core'; import { ColorRGB } from '@obliczeniowo/elementary/classes'; import * as i4 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import * as i3 from '@angular/common'; import * as i5 from '@angular/cdk/overlay'; import * as i6 from '@obliczeniowo/elementary/input'; import * as i7 from '@obliczeniowo/elementary/buttons'; interface ColorTranslations { red: string; green: string; blue: string; alpha: string; } declare class ColorComponent implements OnInit, AfterViewInit { private readonly elementRef; colorsCanvas: HTMLCanvasElement; colorBlue: HTMLCanvasElement; colorAlpha: HTMLCanvasElement; colorsCtx: CanvasRenderingContext2D; colorBlueCtx: CanvasRenderingContext2D; colorAlphaCtx: CanvasRenderingContext2D; colorsBitmap: ImageData; chosenColor: ColorRGB; inputBorder: i0.InputSignal<"outlined" | "underlined" | "none">; changed: EventEmitter; transparentImage: HTMLImageElement; pointer: HTMLDivElement; translations: ColorTranslations; constructor(elementRef: ElementRef); ngOnInit(): void; ngAfterViewInit(): void; valueChanged(event: any, value: string, emit?: boolean): void; redrawAll(): void; redrawColorsMap(): void; redrawBlueGradientMap(): void; refreshAlphaGradient(): void; colorsMapClicked(event: any): void; blueMapClicked(event: any): void; alphaMapClicked(event: any): void; input(event: any, field: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ColorPickerTranslations extends ColorTranslations { set: string; cancel: string; } type PickerColor = ColorRGB | { r: string | number; g: string | number; b: string | number; a: string | number; }; declare class ColorPickerControlComponent implements ControlValueAccessor { private pChosenColor; isOpen: boolean; translations: i0.InputSignal; set chosenColor(chosenColor: PickerColor); inputBorder: i0.InputSignal<"outlined" | "underlined" | "none">; buttonPos: ElementRef; colorComponent: ColorComponent; changed: EventEmitter; onChange: (value: ColorRGB | undefined) => void; onTouched: () => void; registerOnValidatorChange(fn: () => void): void; writeValue(set?: ColorRGB): void; registerOnChange(onChange: any): void; registerOnTouched(onTouched: any): void; save(): void; toggle(): void; color(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ColorPickerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ColorComponent, ColorPickerControlComponent, ColorPickerModule }; export type { ColorPickerTranslations, ColorTranslations, PickerColor };