import { UsePlugin, GetProps, GetState } from '../utils/usePlugin'; import { ConsolePlugin } from '../plugins/Plugin'; import { ConsoleController } from './ConsoleController'; export interface ConsoleCommanderOptions { plugins?: T; prefix?: string; commands(this: P): void; } declare type ConsoleCommander = ConsoleCommanderFunc & { global: ConsoleCommanderGlobal; local: ConsoleCommanderLocal; }; declare type ConsoleCommanderFunc = { & ExtraProps, GetState & ExtraState>>(options: ConsoleCommanderOptions): ConsoleController; }; declare type ConsoleCommanderGlobal = (plugins: UsePlugin | ConsolePlugin) => ConsoleCommander; declare type ConsoleCommanderLocal = (plugins: UsePlugin | ConsolePlugin) => ConsoleCommanderFunc & { local: ConsoleCommanderLocal; }; export declare const baseConsoleCommander: ConsoleCommander; export {};