mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-08 15:22:43 +08:00
15 lines
761 B
TypeScript
15 lines
761 B
TypeScript
![]() |
import { PublishProvider } from "builder-util-runtime";
|
||
|
import { Stats } from "fs-extra";
|
||
|
import { PublishContext, UploadTask } from ".";
|
||
|
import { ProgressBar } from "./progress";
|
||
|
export declare abstract class Publisher {
|
||
|
protected readonly context: PublishContext;
|
||
|
protected constructor(context: PublishContext);
|
||
|
abstract get providerName(): PublishProvider;
|
||
|
abstract upload(task: UploadTask): Promise<any>;
|
||
|
protected createProgressBar(fileName: string, size: number): ProgressBar | null;
|
||
|
protected createReadStreamAndProgressBar(file: string, fileStat: Stats, progressBar: ProgressBar | null, reject: (error: Error) => void): NodeJS.ReadableStream;
|
||
|
abstract toString(): string;
|
||
|
}
|
||
|
export declare function getCiTag(): string | null;
|