import { StateObserver, type $Coder } from "../../util/StateObserver.js"; import { BasePlugin } from "../base/base.plugin.js"; import { WindowBottomSheetsController } from "./WindowBottomSheetsController.js"; import type { $AlertOptions, $DisplayState, $WindowRawState, $WindowState } from "./window.type.js"; /** * 访问 window 能力的插件 */ export declare class WindowPlugin extends BasePlugin { constructor(); coder: $Coder<$WindowRawState, $WindowState>; get windowInfo(): any; get state(): StateObserver<$WindowRawState, $WindowRawState>; protected fetchState(): Promise; /**获取当前屏幕信息 */ getDisplay(): Promise; /** * 设置窗口大小 * @param resizable 窗口是否允许手动改变宽高 * @param width 宽 * @param height 高 * @returns */ setBounds(resizable: boolean, width?: number, height?: number): Promise; get getState(): (force_update?: boolean) => Promise<$WindowRawState>; /** 设置窗口样式 */ setStyle(options: { topBarOverlay?: boolean; bottomBarOverlay?: boolean; keyboardOverlaysContent?: boolean; topBarContentColor?: string; topBarContentDarkColor?: string; topBarBackgroundColor?: string; topBarBackgroundDarkColor?: string; bottomBarContentColor?: string; bottomBarContentDarkColor?: string; bottomBarBackgroundColor?: string; bottomBarBackgroundDarkColor?: string; bottomBarTheme?: string; themeColor?: string; themeDarkColor?: string; }): Promise; /** * 窗口聚焦 */ focusWindow(): Promise; /**窗口失焦 */ blurWindow(): Promise; /**最大化窗口 */ maximize(): Promise; /**取消最大化窗口 */ unMaximize(): Promise; /**隐藏或显示窗口 */ visible(): Promise; /**关闭窗口 */ close(): Promise; /**创建window的ipc连接 */ private getWindowIpc; private createModalArgs; /**弹出窗口 */ alert(options: $AlertOptions): Promise; /**弹出从底部出现的窗口 */ createBottomSheets(contentUrl: string): Promise; } export declare const windowPlugin: WindowPlugin; //# sourceMappingURL=window.plugin.d.ts.map