import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/shared'; /** * @public * 水印样式配置 */ interface ThyCanvasConfigType { /** * 偏移角度 */ degree?: number; /** * 字体颜色。如果传的是数组,第一个为默认主题的字体颜色,第二个为黑暗主题的字体颜色 */ color?: string | string[]; /** * 字体大小 */ fontSize?: number | string; /** * 文本行高 */ textLineHeight?: number; /** * 横纵间距 */ gutter?: number[]; } /** * 水印指令 * @name thyWatermark */ declare class ThyWatermarkDirective implements OnInit { private el; /** * 是否禁用,默认为 false */ readonly thyDisabled: i0.InputSignalWithTransform; /** * 水印内容 */ readonly thyWatermark: i0.InputSignal; /** * 水印样式配置 */ readonly thyCanvasConfig: i0.InputSignal; readonly content: i0.Signal; private createWatermark$; private observer; private canvas; private wmDiv; private readonly destroyRef; private thyThemeStore; constructor(); ngOnInit(): void; private refreshWatermark; private removeWatermark; createCanvas(): HTMLCanvasElement; private createWatermark; private observeAttributes; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ThyWatermarkModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ThyWatermarkDirective, ThyWatermarkModule }; export type { ThyCanvasConfigType };