import { NotificationHandler, RemotePendingCommitDownloaded, GpgKey, Callback, AbsoluteDirectoryPath, AbsoluteFilePath } from './Types'; import { MapFunc } from 'streamdash'; export interface MkdirP { (path: AbsoluteDirectoryPath, next: (e: Error | null) => void): void; } export declare function getDependencies(): Dependencies; export interface Dependencies { utimes: (filename: AbsoluteFilePath, atime: number, mtime: number, next: Callback) => void; copyFile: (src: AbsoluteFilePath, dest: AbsoluteFilePath, next: Callback) => void; rename: (oldFn: AbsoluteFilePath, newFn: AbsoluteFilePath, next: Callback) => void; mkdirp: MkdirP; unlink: (path: AbsoluteFilePath, next: Callback) => void; decrypt: (gpgKey: GpgKey, src: AbsoluteFilePath[], dst: AbsoluteFilePath, info: string, next: Callback) => void; } export default function getToFile({copyFile, utimes, rename, mkdirp, unlink, decrypt}: Dependencies, configDir: AbsoluteDirectoryPath, rootDir: AbsoluteDirectoryPath, notificationHandler?: NotificationHandler, moveCommitFile?: boolean): MapFunc;