kubo-rpc-client
Version:
A client library for the Kubo RPC API
19 lines • 716 B
TypeScript
import type { HTTPRPCOptions } from '../../index.js';
import type { HTTPRPCClient } from '../../lib/core.js';
import type { Config } from '../index.js';
export interface ProfilesApplyOptions extends HTTPRPCOptions {
dryRun?: boolean;
}
export interface ProfilesApplyResult {
original: Config;
updated: Config;
}
export interface ConfigProfilesAPI {
/**
* Apply a profile to the current config. Note that restarting the node
* will be necessary for any change to take effect.
*/
apply(name: string, options?: ProfilesApplyOptions): Promise<ProfilesApplyResult>;
}
export declare function createProfiles(client: HTTPRPCClient): ConfigProfilesAPI;
//# sourceMappingURL=index.d.ts.map