UNPKG

@qc2168/mib

Version:
34 lines (33 loc) 1.21 kB
import { ExecAdbOptions } from "./utils/adb"; import { FileNodeType } from "./node"; import { type SaveItemType, type ConfigType } from "./config"; interface BackupOptionType { backupDir: string; outputDir: string; full?: boolean; hash?: boolean; deep?: true; } export default class Mib { readonly adbOpt: ExecAdbOptions; private config; private readonly configPath; constructor(configPath?: string); setDevice(name: string): void; diffNode({ backupDir, outputDir, hash, deep, }: BackupOptionType): { mobileFileNodeList: FileNodeType[]; localFileNodeList: FileNodeType[]; diffList: FileNodeType[]; }; move(orders: string[]): void; moveFolder(source: string, target: string): void; backup(target: string, output: string, opt?: Partial<BackupOptionType>): void; start(item: SaveItemType): void; startAll(): void; setAdbPath(path: string): void; restore(item: SaveItemType | SaveItemType[]): void; scanExt(exts: string[], target?: string, ignorePrefixPaths?: string[]): string[]; getConfig(): ConfigType; reloadConfig(cfg?: ConfigType | null): ConfigType; } export {};