import Events from 'node:events'; import { type Debugger } from 'debug'; import { BrowserView, BrowserWindow } from 'electron'; import type { Bounds } from './preload.js'; export type LoggerFn = (...args: unknown[]) => void; export type Logger = Debugger | LoggerFn; export interface Lang { magnifier_position_label?: string; operation_ok_title?: string; operation_cancel_title?: string; operation_save_title?: string; operation_redo_title?: string; operation_undo_title?: string; operation_mosaic_title?: string; operation_text_title?: string; operation_brush_title?: string; operation_arrow_title?: string; operation_ellipse_title?: string; operation_rectangle_title?: string; } export interface ScreenshotsOpts { lang?: Lang; logger?: Logger; singleWindow?: boolean; } export type { Bounds }; export default class Screenshots extends Events { $win: BrowserWindow | null; $view: BrowserView; private logger; private singleWindow; private isReady; constructor(opts?: ScreenshotsOpts); /** * 开始截图 */ startCapture(): Promise; /** * 结束截图 */ endCapture(): Promise; /** * 设置语言 */ setLang(lang: Partial): Promise; private reset; /** * 初始化窗口 */ private createWindow; private capture; /** * 绑定ipc时间处理 */ private listenIpc; } //# sourceMappingURL=index.d.ts.map