export { get, set } from './config.js'; /** * @description 获取进入当前插件的命令 */ declare const getActionCommand: () => string; /** * @description 获取进入当前插件的主题 */ declare const getTheme: () => string; interface Clipboard { set: (text: string) => void; get: () => Promise; getSelection: () => Promise; } /** * @description 获取控制粘贴板相关的方法 */ declare const clipboard: Clipboard; interface Config { set: (key: string, value: string) => Promise; get: (key: string) => Promise; } /** * @description 获取配置相关的方法 */ declare const config: Config; interface Shell { exec: (command: string, args?: Array, terminal?: boolean, stdin?: string) => Promise; spawn: (command: string, args?: Array) => Promise; openPath: (path: string) => Promise; openUrl: (url: string) => Promise; } /** * @description shell相关的方法 */ declare const shell: Shell; interface MainView { hide: () => void; show: () => void; exit: () => void; } declare const mainView: MainView; declare const trim: (str: string) => string; interface Assets { upload: (contentByes64: string) => Promise; config: () => Promise; } declare const assets: Assets; interface AssetsUploadResponse { url: string; success: boolean; msg: string; } export { type Assets, type AssetsUploadResponse, assets, clipboard, config, getActionCommand, getTheme, mainView, shell, trim };