UNPKG

888 BTypeScriptView Raw
1/// <reference types="node" />
2import { Arch } from "builder-util";
3import { ClientRequest } from "http";
4import { HttpPublisher, PublishContext } from "electron-publish";
5import { BitbucketOptions } from "builder-util-runtime/out/publishOptions";
6export declare class BitbucketPublisher extends HttpPublisher {
7 readonly providerName = "bitbucket";
8 readonly hostname = "api.bitbucket.org";
9 private readonly info;
10 private readonly auth;
11 private readonly basePath;
12 constructor(context: PublishContext, info: BitbucketOptions);
13 protected doUpload(fileName: string, _arch: Arch, _dataLength: number, _requestProcessor: (request: ClientRequest, reject: (error: Error) => void) => void, file: string): Promise<any>;
14 deleteRelease(filename: string): Promise<void>;
15 toString(): string;
16 static convertAppPassword(username: string, token: string): string;
17}