Files
NapCatQQ/.pnpm-store/v3/files/d4/395ba0f8345bc8930103f4c3aabe8b9f8fa40c02923d5998b31d70b3628fdd5e772033b9760cd717f95faedb13547e6fea5e782ef0624ccc6e11c120565929
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

33 lines
1.0 KiB
Plaintext

import type Quill from '../core.js';
import type Clipboard from '../modules/clipboard.js';
import type History from '../modules/history.js';
import type Keyboard from '../modules/keyboard.js';
import type { ToolbarProps } from '../modules/toolbar.js';
import type Uploader from '../modules/uploader.js';
export interface ThemeOptions {
modules: Record<string, unknown> & {
toolbar?: null | ToolbarProps;
};
}
declare class Theme {
protected quill: Quill;
protected options: ThemeOptions;
static DEFAULTS: ThemeOptions;
static themes: {
default: typeof Theme;
};
modules: ThemeOptions['modules'];
constructor(quill: Quill, options: ThemeOptions);
init(): void;
addModule(name: 'clipboard'): Clipboard;
addModule(name: 'keyboard'): Keyboard;
addModule(name: 'uploader'): Uploader;
addModule(name: 'history'): History;
addModule(name: string): unknown;
}
export interface ThemeConstructor {
new (quill: Quill, options: unknown): Theme;
DEFAULTS: ThemeOptions;
}
export default Theme;