2022-04-04 14:28:40 +00:00
|
|
|
/// <reference types="node" resolution-mode="require"/>
|
|
|
|
import * as plugins from './smartarchive.plugins.js';
|
2020-03-13 20:22:56 +00:00
|
|
|
export declare class SmartArchive {
|
|
|
|
constructor();
|
2022-04-04 14:28:40 +00:00
|
|
|
/**
|
|
|
|
* extracts an archive from a given url
|
|
|
|
*/
|
|
|
|
extractArchiveFromUrlToFs(urlArg: string, targetDir: string): Promise<void>;
|
|
|
|
/**
|
|
|
|
* extracts an archive from a given filePath on disk
|
|
|
|
* @param filePathArg
|
2023-07-26 14:13:33 +00:00
|
|
|
* @param targetDirArg
|
2022-04-04 14:28:40 +00:00
|
|
|
*/
|
2023-07-26 14:13:33 +00:00
|
|
|
extractArchiveFromFilePathToFs(filePathArg: string, targetDirArg: string): Promise<void>;
|
2022-04-04 14:28:40 +00:00
|
|
|
/**
|
|
|
|
* extracts to Observable
|
2023-07-26 14:13:33 +00:00
|
|
|
* where the Observable is emitting smartfiles
|
2022-04-04 14:28:40 +00:00
|
|
|
*/
|
|
|
|
extractArchiveFromBufferToObservable(bufferArg: Buffer): Promise<plugins.smartrx.rxjs.ReplaySubject<plugins.smartfile.Smartfile>>;
|
2023-07-26 14:13:33 +00:00
|
|
|
extractArchiveWithIntakeAndReplaySubject(): {
|
|
|
|
intake: plugins.smartstream.StreamIntake<Buffer>;
|
|
|
|
replaySubject: plugins.smartrx.rxjs.ReplaySubject<plugins.smartfile.Smartfile>;
|
|
|
|
};
|
2022-04-04 14:28:40 +00:00
|
|
|
/**
|
|
|
|
* extracts to Observable
|
|
|
|
*/
|
|
|
|
extractArchiveFromUrlToObservable(urlArg: string): Promise<plugins.smartrx.rxjs.ReplaySubject<plugins.smartfile.Smartfile>>;
|
2022-06-07 15:11:13 +00:00
|
|
|
extractArchiveFromUrlToStream(): Promise<void>;
|
|
|
|
extractArchiveFromFilePathToStream(): Promise<void>;
|
|
|
|
extractArchiveFromStreamToStream(): Promise<void>;
|
|
|
|
packFromStreamToStream(): Promise<void>;
|
|
|
|
packFromDirPathToStream(): Promise<void>;
|
|
|
|
packFromDirPathToFs(): Promise<void>;
|
2020-03-13 20:22:56 +00:00
|
|
|
}
|