export type PluginDispose = () => Promise; export declare function createPluginDispose(args: { backgroundManager: { shutdown: () => void | Promise; }; skillMcpManager: { disconnectAll: () => Promise; }; tuiStateMirror?: { stop: () => void; }; disposeHooks: () => void; }): PluginDispose;