bgipfs
Version:
BuidlGuidl IPFS CLI
13 lines (12 loc) • 864 B
TypeScript
export interface IpfsConfigChange {
key: string;
nextValue: unknown;
previousValue: unknown;
type: 'remove' | 'set';
}
export declare const computeIpfsConfigChanges: (config: Record<string, unknown>, ownedKeys: Record<string, unknown>, removedKeys?: string[]) => IpfsConfigChange[];
export declare const mergeIpfsConfig: (config: Record<string, unknown>, ownedKeys: Record<string, unknown>, removedKeys?: string[]) => Record<string, unknown>;
export declare const readIpfsConfig: (configPath?: string) => Promise<Record<string, unknown>>;
export declare const readIpfsRepoVersion: (versionPath?: string) => Promise<number | undefined>;
export declare const backupIpfsConfig: (configPath?: string, backupDir?: string) => Promise<string>;
export declare const writeIpfsConfig: (config: Record<string, unknown>, configPath?: string) => Promise<void>;