import { ServerSize } from '@byted/miniprogram-utils/typings/project'; import { ProjectInfo, QrcodeInfo } from '../../types'; import { IMetrics } from '../../utils/metrics'; import { IDEConfig, MakeSchemaOption } from '../../utils/qrcode'; export declare type ProjectQRCode = { expireTime: number; shortUrl: string; originSchema: string; qrcodeSVG?: string; qrcodeFilePath?: string; useCache: boolean; } & Pick; declare type CompileProgressResult = { success: boolean; /** error code */ error: number; done: boolean; msg: string; metrics?: IMetrics; errLink?: string; passJson: { packageSize?: ServerSize; } & Record; }; export declare type PreviewOption = Pick; /** * 预览上传(功能入口) * @param options * @returns */ export declare function preview(options: PreviewOption): Promise; export declare type UploadOption = Pick & { version: string; changeLog: string; needUploadSourcemap?: boolean; extraCheckInfoJson?: string; channel?: string; }; /** * 发布上传(功能入口) * @param options * @returns */ export declare function upload(options: UploadOption): Promise; export declare type ProjectToQRCodeOption = { project: ProjectInfo; page: { path: string; query: string; scene: string; launchFrom: string; location: string; } & Pick; qrcode: QrcodeInfo; cache: boolean; copyToClipboard: boolean; uploadOptions?: { version: string; changeLog: string; needUploadSourcemap: boolean; extraCheckInfoJson?: string; channel?: string; }; extraInfoJson?: string; localCompileVersion?: string; ideConfig?: IDEConfig; debug?: { query: { gtoken: string; roomid: string; session: string; }; }; uploadCache?: boolean; supportSourcemap?: boolean; enableHotRestartCache?: boolean; updateStatus?: (status: { upload: number; check: number; compile: number; uploadSuccess?: boolean; }) => any; setCheckResult?: (result: any) => any; isNewPlatform?: (value: boolean) => void; }; export declare function projectToQRCode(options: ProjectToQRCodeOption): Promise; export declare function getChannelLimit(appid: string): Promise<{ limit_num: number; } | null>; export declare function checkChannel(appid: string, channel: string): Promise; export {};