import { MapFunc } from 'streamdash'; import { CmdSpawner } from './CmdRunner'; import { RemoteType, S3Location, Callback, AbsoluteFilePath, AbsoluteDirectoryPath, S3BucketName, GpgKey, Filename, CommitFilename, CmdResult } from '../src/Types'; export interface MkdirP { (path: AbsoluteDirectoryPath, next: (e: Error | null) => void): void; } export interface Dependencies { unlink: (path: AbsoluteFilePath, next: Callback) => void; download: (tmpDir: AbsoluteDirectoryPath, loc: S3Location, downloadTo: AbsoluteFilePath, next: Callback) => void; cmdSpawner: CmdSpawner; rename: (src: AbsoluteFilePath, dst: AbsoluteFilePath, next: Callback) => void; mkdirp: MkdirP; } export declare function getDependencies(mode: RemoteType): Dependencies; export declare type RemotePendingCommitCmdResult = CommitFilename & { result: CmdResult; }; export default function getRepositoryCommitToRemoteCommitMapFunc(dependencies: Dependencies, configDir: AbsoluteDirectoryPath, s3Bucket: S3BucketName, gpgKey: GpgKey): MapFunc;