2019-02-06 18:27:20 +00:00
|
|
|
declare namespace NodeJS {
|
|
|
|
interface FeaturesBinding {
|
|
|
|
isDesktopCapturerEnabled(): boolean;
|
|
|
|
isOffscreenRenderingEnabled(): boolean;
|
|
|
|
isPDFViewerEnabled(): boolean;
|
|
|
|
isRunAsNodeEnabled(): boolean;
|
|
|
|
isFakeLocationProviderEnabled(): boolean;
|
|
|
|
isViewApiEnabled(): boolean;
|
|
|
|
isTtsEnabled(): boolean;
|
|
|
|
isPrintingEnabled(): boolean;
|
|
|
|
}
|
2019-02-12 14:22:33 +00:00
|
|
|
|
|
|
|
interface V8UtilBinding {
|
|
|
|
getHiddenValue<T>(obj: any, key: string): T;
|
|
|
|
setHiddenValue<T>(obj: any, key: string, value: T): void;
|
|
|
|
}
|
2019-02-06 18:27:20 +00:00
|
|
|
interface Process {
|
2019-02-12 14:22:33 +00:00
|
|
|
/**
|
|
|
|
* DO NOT USE DIRECTLY, USE process.atomBinding
|
|
|
|
*/
|
|
|
|
binding(name: string): any;
|
2019-02-06 18:27:20 +00:00
|
|
|
atomBinding(name: string): any;
|
|
|
|
atomBinding(name: 'features'): FeaturesBinding;
|
2019-02-12 14:22:33 +00:00
|
|
|
atomBinding(name: 'v8_util'): V8UtilBinding;
|
2019-02-06 18:27:20 +00:00
|
|
|
log: NodeJS.WriteStream['write'];
|
2019-02-12 14:22:33 +00:00
|
|
|
activateUvLoop(): void;
|
2019-02-06 18:27:20 +00:00
|
|
|
}
|
|
|
|
}
|