import type { KuboNode, KuboInfo, KuboInitOptions, KuboOptions, KuboStartOptions, KuboStopOptions } from './index.ts'; import type { KuboRPCClient } from 'kubo-rpc-client'; /** * Node for daemon nodes */ export default class KuboDaemon implements KuboNode { options: KuboOptions & Required>; private readonly disposable; private subprocess?; private _api?; private readonly repo; private readonly stdout; private readonly stderr; private readonly _exec?; private readonly env; private readonly initArgs?; private readonly startArgs?; private readonly stopArgs?; constructor(options: KuboOptions); get api(): KuboRPCClient; get exec(): string; info(): Promise; /** * Delete the repo that was being used. If the node was marked as disposable * this will be called automatically when the process is exited. */ cleanup(): Promise; init(args?: KuboInitOptions): Promise; /** * Start the daemon */ start(args?: KuboStartOptions): Promise; stop(options?: KuboStopOptions): Promise; /** * Call `ipfs config` * * If no `key` is passed, the whole config is returned as an object. */ _getConfig(): Promise; /** * Replace the current config with the provided one */ _replaceConfig(config: any): Promise; private getVersion; } //# sourceMappingURL=daemon.d.ts.map