///
///
declare module "copyright" {
export class FoundationDeviceSystemCopyright {
static toString(): string;
}
}
declare module "foundation/device/system/compile/NodePackageBuilder" {
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService';
import { Builder } from 'foundation/core/module/builder/Builder';
export class NodePackageBuilder extends Builder {
sourcePath: string;
nodePath: string;
protected _environmentService: EnvironmentService;
processAsync(): Promise;
}
}
declare module "foundation/device/system/compile/NodeBuilderDevice" {
import { BuilderDevice } from 'foundation/core/module/builder/BuilderDevice';
import { IBuilder } from 'foundation/core/module/builder/IBuilder';
import { IBuilderDevice } from 'foundation/core/module/builder/IBuilderDevice';
export class NodeBuilderDevice extends BuilderDevice implements IBuilderDevice {
create(typeCode: string): IBuilder;
}
}
declare module "foundation/device/system/compile/NodeBuilderDeviceProvider" {
import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider';
import { NodeBuilderDevice } from "foundation/device/system/compile/NodeBuilderDevice";
export class NodeBuilderDeviceProvider extends DeviceProvider {
create(): NodeBuilderDevice;
}
}
declare module "foundation/device/system/file/NodeFileDevice" {
import { FileDevice } from 'cross/core/device/file/FileDevice';
import { IFileDevice } from 'cross/core/device/file/IFileDevice';
export class NodeFileDevice extends FileDevice implements IFileDevice {
isFile(data: any): boolean;
}
}
declare module "foundation/device/system/file/NodeFileDeviceProvider" {
import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider';
import { NodeFileDevice } from "foundation/device/system/file/NodeFileDevice";
export class NodeFileDeviceProvider extends DeviceProvider {
create(): NodeFileDevice;
}
}
declare module "foundation/device/system/host/NodeHostHardware" {
import { HostHardware } from 'cross/core/device/host/HostHardware';
import { HostHardwareCpuInfo, HostProcessMemory } from 'cross/core/device/host/IHostHardware';
export class NodeHostHardware extends HostHardware {
get platform(): string;
get platformVersion(): string;
get hostName(): string;
get arch(): string;
get userName(): string;
get nodeVersion(): string;
get nodeEngine(): string;
getCpuInfo(): HostHardwareCpuInfo;
getCpuSpeed(): number;
getTotalMemory(): number;
getFreeMemory(): number;
getProcessMemory(): HostProcessMemory;
protected innerCpuAverage(cpu: any): any;
cpuLoad(): number;
getRamRss(): number;
getInfo(): any;
}
}
declare module "foundation/device/system/host/NodeHostProcess" {
import { HostProcess } from 'cross/core/device/host/HostProcess';
export class NodeHostProcess extends HostProcess {
}
}
declare module "foundation/device/system/host/NodeHostDevice" {
import { DateTime } from 'cross/runtime/lang/DateTime';
import { TimeTick } from 'cross/runtime/lang/TimeTick';
import { HostDevice } from 'cross/core/device/host/HostDevice';
import { HostInfo } from 'cross/core/device/host/HostInfo';
export class NodeHostDevice extends HostDevice {
constructor();
setup(): void;
getDate(): DateTime;
getTick(): TimeTick;
getInfo(): HostInfo;
dispose(): void;
}
}
declare module "foundation/device/system/host/NodeHostDeviceProvider" {
import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider';
import { NodeHostDevice } from "foundation/device/system/host/NodeHostDevice";
export class NodeHostDeviceProvider extends DeviceProvider {
create(): NodeHostDevice;
}
}
declare module "foundation/device/system/IndexSpace" {
export class IndexSpace {
static namespaces(): string[];
}
}
declare module "foundation/device/system/net/NodeHttpConnection" {
import { Attributes } from 'cross/runtime/lang/collection/Attributes';
import { IContext } from 'cross/runtime/lang/IContext';
import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService';
import { HttpConnection } from 'cross/core/device/http/HttpConnection';
import { HttpData } from 'cross/core/device/http/HttpData';
import { HttpMethodEnum } from 'cross/core/device/http/HttpMethodEnum';
import { HttpResult } from 'cross/core/device/http/HttpResult';
import { IHttpConnection } from 'cross/core/device/http/IHttpConnection';
export class NodeHttpConnection extends HttpConnection implements IHttpConnection {
static TIMEOUT: number;
url: string;
methodCd: HttpMethodEnum;
protected _heads: Attributes;
protected _environmentService: EnvironmentService;
constructor();
header(name: string): string;
setHeader(name: string, value: string): void;
sendAsync(context: IContext, data: HttpData): Promise;
}
}
declare module "foundation/device/system/net/NodeNetDeviceProvider" {
import { DeviceProvider } from 'cross/runtime/module/device/DeviceProvider';
import { NodeHttpConnection } from "foundation/device/system/net/NodeHttpConnection";
export class NodeNetDeviceProvider extends DeviceProvider {
create(): NodeHttpConnection;
}
}