import { attach } from '../attach/attach'; import { LoadPluginOptions } from './factory'; import { NvimPlugin } from './NvimPlugin'; export interface Response { send(resp: any, isError?: boolean): void; } export declare class Host { loaded: { [index: string]: NvimPlugin; }; nvim?: ReturnType; constructor(); getPlugin(filename: string, options?: LoadPluginOptions): NvimPlugin | null; handlePlugin(method: string, args: any[]): Promise; handleRequestSpecs(_method: string, args: any[], res: Response): void; handler(method: string, args: any[], res: Response): Promise; start({ proc }: { proc: NodeJS.Process; }): Promise; }