/// /// declare module "copyright" { export class FoundationDeviceSystemCopyright { static toString(): string; } } declare module "foundation/device/worker/IndexSpace" { export class IndexSpace { static namespaces(): string[]; } } declare module "foundation/device/worker/file/WebFileDevice" { import { FileDevice } from 'cross/core/device/file/FileDevice'; export class WebFileDevice extends FileDevice { isFile(data: any): boolean; } } declare module "foundation/device/worker/file/WebFileDeviceProvider" { import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider'; import { WebFileDevice } from "foundation/device/worker/file/WebFileDevice"; export class WebFileDeviceProvider extends DeviceProvider { create(): WebFileDevice; } } declare module "foundation/device/worker/http/WebDeviceUtil" { export class WebDeviceUtil { private static _vendor; private static vendor; static createConnection(): any; static createDocument(): any; } } declare module "foundation/device/worker/http/WebHttpConnection" { import { Attributes } from 'cross/runtime/lang/collection/Attributes'; import { IContext } from 'cross/runtime/lang/IContext'; import { InvokeThread } from 'cross/runtime/module/thread/InvokeThread'; import { ThreadService } from 'cross/runtime/module/thread/ThreadService'; import { HttpConnection } from 'cross/core/device/http/HttpConnection'; import { HttpContentEnum } from 'cross/core/device/http/HttpContentEnum'; import { HttpData } from 'cross/core/device/http/HttpData'; import { HttpMethodEnum } from 'cross/core/device/http/HttpMethodEnum'; import { HttpResult } from 'cross/core/device/http/HttpResult'; export class WebHttpConnection extends HttpConnection { url: string; optionCrossDomain: boolean; methodCd: HttpMethodEnum; dataCd: HttpContentEnum; contentCd: HttpContentEnum; passport: string; password: string; timeout: number; protected _heads: Attributes; protected _input: any; protected _inputData: any; protected _output: any; protected _outputData: any; protected _handle: any; protected _handleResolve: any; protected _handleReject: any; protected _contentType: string; protected _contentLength: number; protected _statusActive: boolean; protected _startTick: number; protected _endTick: number; protected _thread: InvokeThread; protected _threadService: ThreadService; constructor(); header(name: string): string; setHeader(name: string, value: string): void; get content(): any; private setHeaders; private setInputData; private setOutputData; private ohConnectReady; private ohConnectProgress; private ohConnectFailure; private connectionProgress; private connectionComplete; private connectionFailure; onThreadProcess(): void; sendAsync(context: IContext, data: HttpData): Promise; protected innerSendAsync(context: IContext, data: HttpData): Promise; private statusComplete; openHandle(): void; closeHandle(): void; dispose(): void; } } declare module "foundation/device/worker/http/WebNetDeviceProvider" { import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider'; import { WebHttpConnection } from "foundation/device/worker/http/WebHttpConnection"; export class WebNetDeviceProvider extends DeviceProvider { create(): WebHttpConnection; } } declare module "foundation/device/worker/worker/WebWorkerDevice" { import { IContext } from 'cross/runtime/lang/IContext'; import { WorkerDevice } from 'cross/core/device/worker/WorkerDevice'; import { WorkerSendData } from 'cross/core/device/worker/WorkerSendData'; export class WebWorkerDevice extends WorkerDevice { statusValid: boolean; handle: Worker; setup(): void; startup(context: IContext): void; onMessage: (event: MessageEvent) => void; onError: (event: ErrorEvent) => void; send(context: IContext, data: WorkerSendData): void; shutdown(context: IContext): void; } } declare module "foundation/device/worker/worker/WebWorkerDeviceProvider" { import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider'; import { WebWorkerDevice } from "foundation/device/worker/worker/WebWorkerDevice"; export class WebWorkerDeviceProvider extends DeviceProvider { create(): WebWorkerDevice; } }