Chenloong999's picture
backup 2026-08-23T20:24:25.191693
e5de7b5 verified
Raw History Blame Contribute Delete
369 Bytes
import type { PluginContext } from "./context.js";
export interface Plugin {
readonly id: string;
readonly setup: (context: PluginContext) => Promise<void> | void;
}
export declare function define(plugin: Plugin): Plugin;
export interface PluginDomain {
readonly add: (plugin: Plugin) => Promise<void>;
readonly remove: (id: string) => Promise<void>;
}