import type { PreviewMode, ProjectToQRCodeOption } from '../features/preview'; export interface MakeSchemaResult { originSchema: string; shortUrl: string; expireTime: number; } interface RoomInfo { gtoken: string; roomid: string; } interface QRCodeQuery extends RoomInfo { [k: string]: string; } interface BDPLog { launch_from: string; location: string; entrance_form?: string; enter_from_merge?: string; enter_position?: string; } export declare type IDEConfig = IDEBaseConfig & IDESandboxConfig; export declare type IDEExtraInfo = { ip?: string; subnet?: string; local_room_service_url?: string; packages_token?: string; is_app_auto_test?: boolean; preload?: '0' | '1'; enableWebkitDebug?: boolean; }; export interface IDEBaseConfig { previewScene: 'live' | 'default'; ideVersion: string; ideOS: string; ideDid: string; ideUid: number; skipDomainCheck?: boolean; inspectPlatform?: DevicePlatform; iOSDebugVersion?: string; connectType?: 'push' | 'scan'; localDebug?: boolean; dycloudConfig?: { callContainer: string | null; websocket: string | null; }; extraInfo?: IDEExtraInfo; performanceTest?: boolean; openApplicationType?: string; } export interface IDESandboxConfig { isSandbox?: boolean; randomKey?: string; accountName?: string; appId?: string; appName?: string; expireTime?: string; } declare type DevicePlatform = 'Android' | 'iOS' | 'all'; export declare type MakeSchemaOption = { devAppid: string; extAppid: string; startPage: string; query: string; qrcodeQuery?: QRCodeQuery; scene: string; bdpLog: BDPLog; headers: object; inspectPlatform?: DevicePlatform; ideConfig?: IDEConfig; referrerInfo?: { appId: string; extraData: Record; }; isInteractGame?: boolean; hotRestartHash?: string; type: string; penetrateMapJson?: Record; traceVersion?: number; traceMode?: number; uploadOptions?: ProjectToQRCodeOption['uploadOptions']; lynxSchema?: string; shelledTechType?: number; pluginAppid?: string; previewPluginMode?: PreviewMode; xScreen?: boolean; razorTmarVersion?: string; }; export declare function makeSchema(options: MakeSchemaOption): Promise; export declare function toQRCodeSVG(str: string): Promise; export declare function toQRCodeFile(text: string, filePath: string, bgColor?: string): Promise; export declare function generateTerminalQrCode(url: string, options: { small?: boolean; copy?: boolean; }): void; export {};