import { BaseWindowHandlerContribution, ContainerModule } from '@visactor/vrender-core'; import type { EnvType, IGlobal, IContext2d, ICanvas, IDomRectLike, IWindowParams, IWindowHandlerContribution } from '@visactor/vrender-core'; declare class MiniAppEventManager { addEventListener(type: string, func: EventListenerOrEventListenerObject): void; removeEventListener(type: string, func: EventListenerOrEventListenerObject): void; cleanEvent(): void; cache: Record; } export declare class HarmonyWindowHandlerContribution extends BaseWindowHandlerContribution implements IWindowHandlerContribution { private readonly global; static env: EnvType; type: EnvType; protected eventManager: MiniAppEventManager; canvas: ICanvas; get container(): HTMLElement | null; constructor(global: IGlobal); getTitle(): string; getWH(): { width: number; height: number; }; getXY(): { x: number; y: number; }; createWindow(params: IWindowParams): void; private createWindowByConfig; private createWindowByCanvas; releaseWindow(): void; resizeWindow(width: number, height: number): void; setDpr(dpr: number): void; getContext(): IContext2d; getNativeHandler(): ICanvas; getDpr(): number; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; dispatchEvent(event: any): boolean; getStyle(): CSSStyleDeclaration | Record; setStyle(style: CSSStyleDeclaration | Record): void; getBoundingClientRect(): IDomRectLike; clearViewBox(color?: string): void; } export declare const harmonyWindowModule: ContainerModule; export {};