import * as i0 from '@angular/core'; import { OnChanges, ViewContainerRef } from '@angular/core'; import * as i1 from '@angular/common'; type QrCodeErrorCorrectionLevel = "low" | "medium" | "quartile" | "high" | "L" | "M" | "Q" | "H"; type RGBAColor = `#${string}`; type QRCodeMaskPattern = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; declare class QrCodeComponent { value?: string; size?: string | number; style?: { [klass: string]: any; } | null; styleClass?: string; darkColor?: RGBAColor; lightColor?: RGBAColor; errorCorrectionLevel?: QrCodeErrorCorrectionLevel; centerImageSrc?: string; centerImageSize?: string | number; margin?: string | number; scale?: string | number; maskPattern?: QRCodeMaskPattern; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class QrCodeDirective implements OnChanges { private viewContainerRef; static readonly DEFAULT_ERROR_CORRECTION_LEVEL: QrCodeErrorCorrectionLevel; static readonly DEFAULT_CENTER_IMAGE_SIZE = 40; value: string; version?: number; errorCorrectionLevel?: QrCodeErrorCorrectionLevel; width?: number | string; height?: number | string; darkColor?: RGBAColor; lightColor?: RGBAColor; centerImageSrc?: string; centerImageWidth?: number | string; centerImageHeight?: number | string; margin?: number | string; qrScale?: number | string | undefined; qrCodeMaskPattern?: QRCodeMaskPattern | undefined; private centerImage?; constructor(viewContainerRef: ViewContainerRef); ngOnChanges(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare function getOptionalInt(value: string | number): number; declare function getOptionalInt(value: string | number | undefined): number | undefined; declare function getIntOrDefault(value: string | number | undefined, defaultValue: number): number; /** * @deprecated prefer importing `QrCodeComponent` or `QrCodeDirective` directly */ declare class QrCodeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { QrCodeComponent, QrCodeDirective, QrCodeModule, getIntOrDefault, getOptionalInt }; export type { QRCodeMaskPattern, QrCodeErrorCorrectionLevel, RGBAColor };