-
-
-
-
-
-
-
-
- Levity
- More than code.
-
-
We are dedicated to empowering companies like you to be equipped with leading technologies. From upgrading existing projects
- to disrupting a market with a new idea, Levity is ready for any task. Creating brilliant and cunning user experiences capable of overcoming
- operational obstacles through digital innovations.
-
-
Learn More
-
-
-
-
-
-
-
Solutions
-
When it comes down to it, Levity solves our clients' most challenging problems. With a team of broad talent, we bring digital innovation with us wherever we go.
-
- - Development
- - Mobile Apps
- - Blockchain
- - VR/AR
- - Design
- - Strategy
-
-
Get your Solution
-
-
-
-
-
-
-
Featured Article
-
- {% for post in site.posts %}
- {% if post.featured == "True" %}
-
-
-
- {% endif %}
- {% endfor %}
-
-
-
-
-
-
-
-
News
-
Our success and culture is all you will need to be on board with our amazing team.
-
- {% for post in site.posts limit:3 %}
-
-
-
- {% endfor %}
-
All Posts
-
-
-
-
-
-
-
-
-
-
Our Team
-
-
-
-
-

-
Bazyl Horsey
-
CEO
-
-
-
-
-

-
Michael Martin
-
CTO
-
-
-
-
-

-
Cole Goslar
-
CMO
-
-
-
-
-

-
Alyssa Ertz
-
Graphic Designer
-
-
-
-
-

-
Justin Rubek
-
Software Engineer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/node_modules/@types/node/LICENSE b/node_modules/@types/node/LICENSE
deleted file mode 100644
index 9e841e7a..00000000
--- a/node_modules/@types/node/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
- MIT License
-
- Copyright (c) Microsoft Corporation.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md
deleted file mode 100644
index f718401a..00000000
--- a/node_modules/@types/node/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/node`
-
-# Summary
-This package contains type definitions for Node.js (http://nodejs.org/).
-
-# Details
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
-
-### Additional Details
- * Last updated: Wed, 25 Nov 2020 06:26:11 GMT
- * Dependencies: none
- * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
-
-# Credits
-These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), and [Victor Perin](https://github.com/victorperin).
diff --git a/node_modules/@types/node/assert.d.ts b/node_modules/@types/node/assert.d.ts
deleted file mode 100644
index b0e1fa12..00000000
--- a/node_modules/@types/node/assert.d.ts
+++ /dev/null
@@ -1,124 +0,0 @@
-declare module 'assert' {
- /** An alias of `assert.ok()`. */
- function assert(value: any, message?: string | Error): asserts value;
- namespace assert {
- class AssertionError implements Error {
- name: string;
- message: string;
- actual: any;
- expected: any;
- operator: string;
- generatedMessage: boolean;
- code: 'ERR_ASSERTION';
-
- constructor(options?: {
- /** If provided, the error message is set to this value. */
- message?: string;
- /** The `actual` property on the error instance. */
- actual?: any;
- /** The `expected` property on the error instance. */
- expected?: any;
- /** The `operator` property on the error instance. */
- operator?: string;
- /** If provided, the generated stack trace omits frames before this function. */
- stackStartFn?: Function;
- });
- }
-
- class CallTracker {
- calls(exact?: number): () => void;
- calls
any>(fn?: Func, exact?: number): Func;
- report(): CallTrackerReportInformation[];
- verify(): void;
- }
- interface CallTrackerReportInformation {
- message: string;
- /** The actual number of times the function was called. */
- actual: number;
- /** The number of times the function was expected to be called. */
- expected: number;
- /** The name of the function that is wrapped. */
- operator: string;
- /** A stack trace of the function. */
- stack: object;
- }
-
- type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
-
- function fail(message?: string | Error): never;
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
- function fail(
- actual: any,
- expected: any,
- message?: string | Error,
- operator?: string,
- stackStartFn?: Function,
- ): never;
- function ok(value: any, message?: string | Error): asserts value;
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
- function equal(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
- function notEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
- function deepEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
- function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
- function strictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
- function deepStrictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
-
- function throws(block: () => any, message?: string | Error): void;
- function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
- function doesNotThrow(block: () => any, message?: string | Error): void;
- function doesNotThrow(block: () => any, error: RegExp | Function, message?: string | Error): void;
-
- function ifError(value: any): asserts value is null | undefined;
-
- function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function rejects(
- block: (() => Promise) | Promise,
- error: AssertPredicate,
- message?: string | Error,
- ): Promise;
- function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function doesNotReject(
- block: (() => Promise) | Promise,
- error: RegExp | Function,
- message?: string | Error,
- ): Promise;
-
- function match(value: string, regExp: RegExp, message?: string | Error): void;
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
-
- const strict: Omit<
- typeof assert,
- | 'equal'
- | 'notEqual'
- | 'deepEqual'
- | 'notDeepEqual'
- | 'ok'
- | 'strictEqual'
- | 'deepStrictEqual'
- | 'ifError'
- | 'strict'
- > & {
- (value: any, message?: string | Error): asserts value;
- equal: typeof strictEqual;
- notEqual: typeof notStrictEqual;
- deepEqual: typeof deepStrictEqual;
- notDeepEqual: typeof notDeepStrictEqual;
-
- // Mapped types and assertion functions are incompatible?
- // TS2775: Assertions require every name in the call target
- // to be declared with an explicit type annotation.
- ok: typeof ok;
- strictEqual: typeof strictEqual;
- deepStrictEqual: typeof deepStrictEqual;
- ifError: typeof ifError;
- strict: typeof strict;
- };
- }
-
- export = assert;
-}
diff --git a/node_modules/@types/node/async_hooks.d.ts b/node_modules/@types/node/async_hooks.d.ts
deleted file mode 100644
index ab35e5db..00000000
--- a/node_modules/@types/node/async_hooks.d.ts
+++ /dev/null
@@ -1,226 +0,0 @@
-/**
- * Async Hooks module: https://nodejs.org/api/async_hooks.html
- */
-declare module "async_hooks" {
- /**
- * Returns the asyncId of the current execution context.
- */
- function executionAsyncId(): number;
-
- /**
- * The resource representing the current execution.
- * Useful to store data within the resource.
- *
- * Resource objects returned by `executionAsyncResource()` are most often internal
- * Node.js handle objects with undocumented APIs. Using any functions or properties
- * on the object is likely to crash your application and should be avoided.
- *
- * Using `executionAsyncResource()` in the top-level execution context will
- * return an empty object as there is no handle or request object to use,
- * but having an object representing the top-level can be helpful.
- */
- function executionAsyncResource(): object;
-
- /**
- * Returns the ID of the resource responsible for calling the callback that is currently being executed.
- */
- function triggerAsyncId(): number;
-
- interface HookCallbacks {
- /**
- * Called when a class is constructed that has the possibility to emit an asynchronous event.
- * @param asyncId a unique ID for the async resource
- * @param type the type of the async resource
- * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created
- * @param resource reference to the resource representing the async operation, needs to be released during destroy
- */
- init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
-
- /**
- * When an asynchronous operation is initiated or completes a callback is called to notify the user.
- * The before callback is called just before said callback is executed.
- * @param asyncId the unique identifier assigned to the resource about to execute the callback.
- */
- before?(asyncId: number): void;
-
- /**
- * Called immediately after the callback specified in before is completed.
- * @param asyncId the unique identifier assigned to the resource which has executed the callback.
- */
- after?(asyncId: number): void;
-
- /**
- * Called when a promise has resolve() called. This may not be in the same execution id
- * as the promise itself.
- * @param asyncId the unique id for the promise that was resolve()d.
- */
- promiseResolve?(asyncId: number): void;
-
- /**
- * Called after the resource corresponding to asyncId is destroyed
- * @param asyncId a unique ID for the async resource
- */
- destroy?(asyncId: number): void;
- }
-
- interface AsyncHook {
- /**
- * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
- */
- enable(): this;
-
- /**
- * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
- */
- disable(): this;
- }
-
- /**
- * Registers functions to be called for different lifetime events of each async operation.
- * @param options the callbacks to register
- * @return an AsyncHooks instance used for disabling and enabling hooks
- */
- function createHook(options: HookCallbacks): AsyncHook;
-
- interface AsyncResourceOptions {
- /**
- * The ID of the execution context that created this async event.
- * Default: `executionAsyncId()`
- */
- triggerAsyncId?: number;
-
- /**
- * Disables automatic `emitDestroy` when the object is garbage collected.
- * This usually does not need to be set (even if `emitDestroy` is called
- * manually), unless the resource's `asyncId` is retrieved and the
- * sensitive API's `emitDestroy` is called with it.
- * Default: `false`
- */
- requireManualDestroy?: boolean;
- }
-
- /**
- * The class AsyncResource was designed to be extended by the embedder's async resources.
- * Using this users can easily trigger the lifetime events of their own resources.
- */
- class AsyncResource {
- /**
- * AsyncResource() is meant to be extended. Instantiating a
- * new AsyncResource() also triggers init. If triggerAsyncId is omitted then
- * async_hook.executionAsyncId() is used.
- * @param type The type of async event.
- * @param triggerAsyncId The ID of the execution context that created
- * this async event (default: `executionAsyncId()`), or an
- * AsyncResourceOptions object (since 9.3)
- */
- constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
-
- /**
- * Binds the given function to the current execution context.
- * @param fn The function to bind to the current execution context.
- * @param type An optional name to associate with the underlying `AsyncResource`.
- */
- static bind any>(fn: Func, type?: string): Func & { asyncResource: AsyncResource };
-
- /**
- * Binds the given function to execute to this `AsyncResource`'s scope.
- * @param fn The function to bind to the current `AsyncResource`.
- */
- bind any>(fn: Func): Func & { asyncResource: AsyncResource };
-
- /**
- * Call the provided function with the provided arguments in the
- * execution context of the async resource. This will establish the
- * context, trigger the AsyncHooks before callbacks, call the function,
- * trigger the AsyncHooks after callbacks, and then restore the original
- * execution context.
- * @param fn The function to call in the execution context of this
- * async resource.
- * @param thisArg The receiver to be used for the function call.
- * @param args Optional arguments to pass to the function.
- */
- runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
-
- /**
- * Call AsyncHooks destroy callbacks.
- */
- emitDestroy(): void;
-
- /**
- * @return the unique ID assigned to this AsyncResource instance.
- */
- asyncId(): number;
-
- /**
- * @return the trigger ID for this AsyncResource instance.
- */
- triggerAsyncId(): number;
- }
-
- /**
- * When having multiple instances of `AsyncLocalStorage`, they are independent
- * from each other. It is safe to instantiate this class multiple times.
- */
- class AsyncLocalStorage {
- /**
- * This method disables the instance of `AsyncLocalStorage`. All subsequent calls
- * to `asyncLocalStorage.getStore()` will return `undefined` until
- * `asyncLocalStorage.run()` is called again.
- *
- * When calling `asyncLocalStorage.disable()`, all current contexts linked to the
- * instance will be exited.
- *
- * Calling `asyncLocalStorage.disable()` is required before the
- * `asyncLocalStorage` can be garbage collected. This does not apply to stores
- * provided by the `asyncLocalStorage`, as those objects are garbage collected
- * along with the corresponding async resources.
- *
- * This method is to be used when the `asyncLocalStorage` is not in use anymore
- * in the current process.
- */
- disable(): void;
-
- /**
- * This method returns the current store. If this method is called outside of an
- * asynchronous context initialized by calling `asyncLocalStorage.run`, it will
- * return `undefined`.
- */
- getStore(): T | undefined;
-
- /**
- * This methods runs a function synchronously within a context and return its
- * return value. The store is not accessible outside of the callback function or
- * the asynchronous operations created within the callback.
- *
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
- *
- * I the callback function throws an error, it will be thrown by `run` too. The
- * stacktrace will not be impacted by this call and the context will be exited.
- */
- // TODO: Apply generic vararg once available
- run(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
-
- /**
- * This methods runs a function synchronously outside of a context and return its
- * return value. The store is not accessible within the callback function or the
- * asynchronous operations created within the callback.
- *
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
- *
- * If the callback function throws an error, it will be thrown by `exit` too. The
- * stacktrace will not be impacted by this call and the context will be
- * re-entered.
- */
- // TODO: Apply generic vararg once available
- exit(callback: (...args: any[]) => R, ...args: any[]): R;
-
- /**
- * Calling `asyncLocalStorage.enterWith(store)` will transition into the context
- * for the remainder of the current synchronous execution and will persist
- * through any following asynchronous calls.
- */
- enterWith(store: T): void;
- }
-}
diff --git a/node_modules/@types/node/base.d.ts b/node_modules/@types/node/base.d.ts
deleted file mode 100644
index fa671790..00000000
--- a/node_modules/@types/node/base.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-// NOTE: These definitions support NodeJS and TypeScript 3.7.
-
-// NOTE: TypeScript version-specific augmentations can be found in the following paths:
-// - ~/base.d.ts - Shared definitions common to all TypeScript versions
-// - ~/index.d.ts - Definitions specific to TypeScript 2.1
-// - ~/ts3.7/base.d.ts - Definitions specific to TypeScript 3.7
-// - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with assert pulled in
-
-// Reference required types from the default lib:
-///
-///
-///
-///
-
-// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
-///
-
-// TypeScript 3.7-specific augmentations:
-///
diff --git a/node_modules/@types/node/buffer.d.ts b/node_modules/@types/node/buffer.d.ts
deleted file mode 100644
index 76c92cf8..00000000
--- a/node_modules/@types/node/buffer.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-declare module "buffer" {
- export const INSPECT_MAX_BYTES: number;
- export const kMaxLength: number;
- export const kStringMaxLength: number;
- export const constants: {
- MAX_LENGTH: number;
- MAX_STRING_LENGTH: number;
- };
- const BuffType: typeof Buffer;
-
- export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
-
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
-
- export const SlowBuffer: {
- /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
- new(size: number): Buffer;
- prototype: Buffer;
- };
-
- export { BuffType as Buffer };
-}
diff --git a/node_modules/@types/node/child_process.d.ts b/node_modules/@types/node/child_process.d.ts
deleted file mode 100644
index b53e91e7..00000000
--- a/node_modules/@types/node/child_process.d.ts
+++ /dev/null
@@ -1,509 +0,0 @@
-declare module "child_process" {
- import { BaseEncodingOptions } from 'fs';
- import * as events from "events";
- import * as net from "net";
- import { Writable, Readable, Stream, Pipe } from "stream";
-
- type Serializable = string | object | number | boolean;
- type SendHandle = net.Socket | net.Server;
-
- interface ChildProcess extends events.EventEmitter {
- stdin: Writable | null;
- stdout: Readable | null;
- stderr: Readable | null;
- readonly channel?: Pipe | null;
- readonly stdio: [
- Writable | null, // stdin
- Readable | null, // stdout
- Readable | null, // stderr
- Readable | Writable | null | undefined, // extra
- Readable | Writable | null | undefined // extra
- ];
- readonly killed: boolean;
- readonly pid: number;
- readonly connected: boolean;
- readonly exitCode: number | null;
- readonly signalCode: NodeJS.Signals | null;
- readonly spawnargs: string[];
- readonly spawnfile: string;
- kill(signal?: NodeJS.Signals | number): boolean;
- send(message: Serializable, callback?: (error: Error | null) => void): boolean;
- send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
- send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean;
- disconnect(): void;
- unref(): void;
- ref(): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. disconnect
- * 3. error
- * 4. exit
- * 5. message
- */
-
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "close", code: number, signal: NodeJS.Signals): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
- emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
- }
-
- // return this object when stdio option is undefined or not specified
- interface ChildProcessWithoutNullStreams extends ChildProcess {
- stdin: Writable;
- stdout: Readable;
- stderr: Readable;
- readonly stdio: [
- Writable, // stdin
- Readable, // stdout
- Readable, // stderr
- Readable | Writable | null | undefined, // extra, no modification
- Readable | Writable | null | undefined // extra, no modification
- ];
- }
-
- // return this object when stdio option is a tuple of 3
- interface ChildProcessByStdio<
- I extends null | Writable,
- O extends null | Readable,
- E extends null | Readable,
- > extends ChildProcess {
- stdin: I;
- stdout: O;
- stderr: E;
- readonly stdio: [
- I,
- O,
- E,
- Readable | Writable | null | undefined, // extra, no modification
- Readable | Writable | null | undefined // extra, no modification
- ];
- }
-
- interface MessageOptions {
- keepOpen?: boolean;
- }
-
- type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
-
- type SerializationType = 'json' | 'advanced';
-
- interface MessagingOptions {
- /**
- * Specify the kind of serialization used for sending messages between processes.
- * @default 'json'
- */
- serialization?: SerializationType;
- }
-
- interface ProcessEnvOptions {
- uid?: number;
- gid?: number;
- cwd?: string;
- env?: NodeJS.ProcessEnv;
- }
-
- interface CommonOptions extends ProcessEnvOptions {
- /**
- * @default true
- */
- windowsHide?: boolean;
- /**
- * @default 0
- */
- timeout?: number;
- }
-
- interface CommonSpawnOptions extends CommonOptions, MessagingOptions {
- argv0?: string;
- stdio?: StdioOptions;
- shell?: boolean | string;
- windowsVerbatimArguments?: boolean;
- }
-
- interface SpawnOptions extends CommonSpawnOptions {
- detached?: boolean;
- }
-
- interface SpawnOptionsWithoutStdio extends SpawnOptions {
- stdio?: 'pipe' | Array;
- }
-
- type StdioNull = 'inherit' | 'ignore' | Stream;
- type StdioPipe = undefined | null | 'pipe';
-
- interface SpawnOptionsWithStdioTuple<
- Stdin extends StdioNull | StdioPipe,
- Stdout extends StdioNull | StdioPipe,
- Stderr extends StdioNull | StdioPipe,
- > extends SpawnOptions {
- stdio: [Stdin, Stdout, Stderr];
- }
-
- // overloads of spawn without 'args'
- function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
- function spawn(command: string, options: SpawnOptions): ChildProcess;
-
- // overloads of spawn with 'args'
- function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
- function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess;
-
- interface ExecOptions extends CommonOptions {
- shell?: string;
- maxBuffer?: number;
- killSignal?: NodeJS.Signals | number;
- }
-
- interface ExecOptionsWithStringEncoding extends ExecOptions {
- encoding: BufferEncoding;
- }
-
- interface ExecOptionsWithBufferEncoding extends ExecOptions {
- encoding: BufferEncoding | null; // specify `null`.
- }
-
- interface ExecException extends Error {
- cmd?: string;
- killed?: boolean;
- code?: number;
- signal?: NodeJS.Signals;
- }
-
- // no `options` definitely means stdout/stderr are `string`.
- function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
- function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
-
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
- function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
- function exec(
- command: string,
- options: { encoding: BufferEncoding } & ExecOptions,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
- function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
- function exec(
- command: string,
- options: (BaseEncodingOptions & ExecOptions) | undefined | null,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- interface PromiseWithChild extends Promise {
- child: ChildProcess;
- }
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace exec {
- function __promisify__(command: string): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options: { encoding: "buffer" | null } & ExecOptions): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
- function __promisify__(command: string, options: { encoding: BufferEncoding } & ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options: ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(command: string, options?: (BaseEncodingOptions & ExecOptions) | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
- }
-
- interface ExecFileOptions extends CommonOptions {
- maxBuffer?: number;
- killSignal?: NodeJS.Signals | number;
- windowsVerbatimArguments?: boolean;
- shell?: boolean | string;
- }
- interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
- encoding: BufferEncoding;
- }
- interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
- encoding: 'buffer' | null;
- }
- interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
- encoding: BufferEncoding;
- }
-
- function execFile(file: string): ChildProcess;
- function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
- function execFile(file: string, args?: ReadonlyArray | null): ChildProcess;
- function execFile(file: string, args: ReadonlyArray | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
-
- // no `options` definitely means stdout/stderr are `string`.
- function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
- function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
-
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
- function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithBufferEncoding,
- callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
- ): ChildProcess;
-
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
- function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithStringEncoding,
- callback: (error: ExecException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
- function execFile(
- file: string,
- options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
- function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptions,
- callback: (error: ExecException | null, stdout: string, stderr: string) => void
- ): ChildProcess;
-
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
- function execFile(
- file: string,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
- ): ChildProcess;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace execFile {
- function __promisify__(file: string): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, args: ReadonlyArray | undefined | null): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
- function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
- function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithOtherEncoding,
- ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
- function __promisify__(file: string, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
- function __promisify__(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
- }
-
- interface ForkOptions extends ProcessEnvOptions, MessagingOptions {
- execPath?: string;
- execArgv?: string[];
- silent?: boolean;
- stdio?: StdioOptions;
- detached?: boolean;
- windowsVerbatimArguments?: boolean;
- }
- function fork(modulePath: string, options?: ForkOptions): ChildProcess;
- function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess;
-
- interface SpawnSyncOptions extends CommonSpawnOptions {
- input?: string | NodeJS.ArrayBufferView;
- killSignal?: NodeJS.Signals | number;
- maxBuffer?: number;
- encoding?: BufferEncoding | 'buffer' | null;
- }
- interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
- encoding: BufferEncoding;
- }
- interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
- encoding?: 'buffer' | null;
- }
- interface SpawnSyncReturns {
- pid: number;
- output: string[];
- stdout: T;
- stderr: T;
- status: number | null;
- signal: NodeJS.Signals | null;
- error?: Error;
- }
- function spawnSync(command: string): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns;
- function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns;
- function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns;
- function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptions): SpawnSyncReturns;
-
- interface ExecSyncOptions extends CommonOptions {
- input?: string | Uint8Array;
- stdio?: StdioOptions;
- shell?: string;
- killSignal?: NodeJS.Signals | number;
- maxBuffer?: number;
- encoding?: BufferEncoding | 'buffer' | null;
- }
- interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
- encoding: BufferEncoding;
- }
- interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
- encoding?: 'buffer' | null;
- }
- function execSync(command: string): Buffer;
- function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
- function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
- function execSync(command: string, options?: ExecSyncOptions): Buffer;
-
- interface ExecFileSyncOptions extends CommonOptions {
- input?: string | NodeJS.ArrayBufferView;
- stdio?: StdioOptions;
- killSignal?: NodeJS.Signals | number;
- maxBuffer?: number;
- encoding?: BufferEncoding;
- shell?: boolean | string;
- }
- interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
- encoding: BufferEncoding;
- }
- interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
- encoding: BufferEncoding; // specify `null`.
- }
- function execFileSync(command: string): Buffer;
- function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
- function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
- function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
- function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithStringEncoding): string;
- function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
- function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): Buffer;
-}
diff --git a/node_modules/@types/node/cluster.d.ts b/node_modules/@types/node/cluster.d.ts
deleted file mode 100644
index 0ef6c2a0..00000000
--- a/node_modules/@types/node/cluster.d.ts
+++ /dev/null
@@ -1,262 +0,0 @@
-declare module "cluster" {
- import * as child from "child_process";
- import * as events from "events";
- import * as net from "net";
-
- // interfaces
- interface ClusterSettings {
- execArgv?: string[]; // default: process.execArgv
- exec?: string;
- args?: string[];
- silent?: boolean;
- stdio?: any[];
- uid?: number;
- gid?: number;
- inspectPort?: number | (() => number);
- }
-
- interface Address {
- address: string;
- port: number;
- addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
- }
-
- class Worker extends events.EventEmitter {
- id: number;
- process: child.ChildProcess;
- send(message: child.Serializable, sendHandle?: child.SendHandle, callback?: (error: Error | null) => void): boolean;
- kill(signal?: string): void;
- destroy(signal?: string): void;
- disconnect(): void;
- isConnected(): boolean;
- isDead(): boolean;
- exitedAfterDisconnect: boolean;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. error
- * 3. exit
- * 4. listening
- * 5. message
- * 6. online
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (error: Error) => void): this;
- addListener(event: "exit", listener: (code: number, signal: string) => void): this;
- addListener(event: "listening", listener: (address: Address) => void): this;
- addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: () => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", error: Error): boolean;
- emit(event: "exit", code: number, signal: string): boolean;
- emit(event: "listening", address: Address): boolean;
- emit(event: "message", message: any, handle: net.Socket | net.Server): boolean;
- emit(event: "online"): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (error: Error) => void): this;
- on(event: "exit", listener: (code: number, signal: string) => void): this;
- on(event: "listening", listener: (address: Address) => void): this;
- on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: () => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (error: Error) => void): this;
- once(event: "exit", listener: (code: number, signal: string) => void): this;
- once(event: "listening", listener: (address: Address) => void): this;
- once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: () => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (error: Error) => void): this;
- prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependListener(event: "listening", listener: (address: Address) => void): this;
- prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: () => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
- prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "listening", listener: (address: Address) => void): this;
- prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(event: "online", listener: () => void): this;
- }
-
- interface Cluster extends events.EventEmitter {
- Worker: Worker;
- disconnect(callback?: () => void): void;
- fork(env?: any): Worker;
- isMaster: boolean;
- isWorker: boolean;
- schedulingPolicy: number;
- settings: ClusterSettings;
- setupMaster(settings?: ClusterSettings): void;
- worker?: Worker;
- workers?: NodeJS.Dict;
-
- readonly SCHED_NONE: number;
- readonly SCHED_RR: number;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "disconnect", listener: (worker: Worker) => void): this;
- addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- addListener(event: "fork", listener: (worker: Worker) => void): this;
- addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: (worker: Worker) => void): this;
- addListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "disconnect", worker: Worker): boolean;
- emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
- emit(event: "fork", worker: Worker): boolean;
- emit(event: "listening", worker: Worker, address: Address): boolean;
- emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
- emit(event: "online", worker: Worker): boolean;
- emit(event: "setup", settings: ClusterSettings): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "disconnect", listener: (worker: Worker) => void): this;
- on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- on(event: "fork", listener: (worker: Worker) => void): this;
- on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: (worker: Worker) => void): this;
- on(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "disconnect", listener: (worker: Worker) => void): this;
- once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- once(event: "fork", listener: (worker: Worker) => void): this;
- once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: (worker: Worker) => void): this;
- once(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependListener(event: "fork", listener: (worker: Worker) => void): this;
- prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: (worker: Worker) => void): this;
- prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependOnceListener(event: "fork", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this;
- prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
- }
-
- const SCHED_NONE: number;
- const SCHED_RR: number;
-
- function disconnect(callback?: () => void): void;
- function fork(env?: any): Worker;
- const isMaster: boolean;
- const isWorker: boolean;
- let schedulingPolicy: number;
- const settings: ClusterSettings;
- function setupMaster(settings?: ClusterSettings): void;
- const worker: Worker;
- const workers: NodeJS.Dict;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- function addListener(event: string, listener: (...args: any[]) => void): Cluster;
- function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function addListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function addListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
- function addListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function emit(event: string | symbol, ...args: any[]): boolean;
- function emit(event: "disconnect", worker: Worker): boolean;
- function emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
- function emit(event: "fork", worker: Worker): boolean;
- function emit(event: "listening", worker: Worker, address: Address): boolean;
- function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
- function emit(event: "online", worker: Worker): boolean;
- function emit(event: "setup", settings: ClusterSettings): boolean;
-
- function on(event: string, listener: (...args: any[]) => void): Cluster;
- function on(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function on(event: "fork", listener: (worker: Worker) => void): Cluster;
- function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- function on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- function on(event: "online", listener: (worker: Worker) => void): Cluster;
- function on(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function once(event: string, listener: (...args: any[]) => void): Cluster;
- function once(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function once(event: "fork", listener: (worker: Worker) => void): Cluster;
- function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- function once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- function once(event: "online", listener: (worker: Worker) => void): Cluster;
- function once(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function removeListener(event: string, listener: (...args: any[]) => void): Cluster;
- function removeAllListeners(event?: string): Cluster;
- function setMaxListeners(n: number): Cluster;
- function getMaxListeners(): number;
- function listeners(event: string): Function[];
- function listenerCount(type: string): number;
-
- function prependListener(event: string, listener: (...args: any[]) => void): Cluster;
- function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function prependListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
- function prependListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster;
- function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function prependOnceListener(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): Cluster;
- function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function eventNames(): string[];
-}
diff --git a/node_modules/@types/node/console.d.ts b/node_modules/@types/node/console.d.ts
deleted file mode 100644
index 178beb45..00000000
--- a/node_modules/@types/node/console.d.ts
+++ /dev/null
@@ -1,133 +0,0 @@
-declare module "console" {
- import { InspectOptions } from 'util';
-
- global {
- // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
- interface Console {
- Console: NodeJS.ConsoleConstructor;
- /**
- * A simple assertion test that verifies whether `value` is truthy.
- * If it is not, an `AssertionError` is thrown.
- * If provided, the error `message` is formatted using `util.format()` and used as the error message.
- */
- assert(value: any, message?: string, ...optionalParams: any[]): void;
- /**
- * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the TTY.
- * When `stdout` is not a TTY, this method does nothing.
- */
- clear(): void;
- /**
- * Maintains an internal counter specific to `label` and outputs to `stdout` the number of times `console.count()` has been called with the given `label`.
- */
- count(label?: string): void;
- /**
- * Resets the internal counter specific to `label`.
- */
- countReset(label?: string): void;
- /**
- * The `console.debug()` function is an alias for {@link console.log()}.
- */
- debug(message?: any, ...optionalParams: any[]): void;
- /**
- * Uses {@link util.inspect()} on `obj` and prints the resulting string to `stdout`.
- * This function bypasses any custom `inspect()` function defined on `obj`.
- */
- dir(obj: any, options?: InspectOptions): void;
- /**
- * This method calls {@link console.log()} passing it the arguments received. Please note that this method does not produce any XML formatting
- */
- dirxml(...data: any[]): void;
- /**
- * Prints to `stderr` with newline.
- */
- error(message?: any, ...optionalParams: any[]): void;
- /**
- * Increases indentation of subsequent lines by two spaces.
- * If one or more `label`s are provided, those are printed first without the additional indentation.
- */
- group(...label: any[]): void;
- /**
- * The `console.groupCollapsed()` function is an alias for {@link console.group()}.
- */
- groupCollapsed(...label: any[]): void;
- /**
- * Decreases indentation of subsequent lines by two spaces.
- */
- groupEnd(): void;
- /**
- * The {@link console.info()} function is an alias for {@link console.log()}.
- */
- info(message?: any, ...optionalParams: any[]): void;
- /**
- * Prints to `stdout` with newline.
- */
- log(message?: any, ...optionalParams: any[]): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Prints to `stdout` the array `array` formatted as a table.
- */
- table(tabularData: any, properties?: ReadonlyArray): void;
- /**
- * Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`.
- */
- time(label?: string): void;
- /**
- * Stops a timer that was previously started by calling {@link console.time()} and prints the result to `stdout`.
- */
- timeEnd(label?: string): void;
- /**
- * For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
- */
- timeLog(label?: string, ...data: any[]): void;
- /**
- * Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
- */
- trace(message?: any, ...optionalParams: any[]): void;
- /**
- * The {@link console.warn()} function is an alias for {@link console.error()}.
- */
- warn(message?: any, ...optionalParams: any[]): void;
-
- // --- Inspector mode only ---
- /**
- * This method does not display anything unless used in the inspector.
- * Starts a JavaScript CPU profile with an optional label.
- */
- profile(label?: string): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
- */
- profileEnd(label?: string): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Adds an event with the label `label` to the Timeline panel of the inspector.
- */
- timeStamp(label?: string): void;
- }
-
- var console: Console;
-
- namespace NodeJS {
- interface ConsoleConstructorOptions {
- stdout: WritableStream;
- stderr?: WritableStream;
- ignoreErrors?: boolean;
- colorMode?: boolean | 'auto';
- inspectOptions?: InspectOptions;
- }
-
- interface ConsoleConstructor {
- prototype: Console;
- new(stdout: WritableStream, stderr?: WritableStream, ignoreErrors?: boolean): Console;
- new(options: ConsoleConstructorOptions): Console;
- }
-
- interface Global {
- console: typeof console;
- }
- }
- }
-
- export = console;
-}
diff --git a/node_modules/@types/node/constants.d.ts b/node_modules/@types/node/constants.d.ts
deleted file mode 100644
index d124ae66..00000000
--- a/node_modules/@types/node/constants.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
-declare module "constants" {
- import { constants as osConstants, SignalConstants } from 'os';
- import { constants as cryptoConstants } from 'crypto';
- import { constants as fsConstants } from 'fs';
- const exp: typeof osConstants.errno & typeof osConstants.priority & SignalConstants & typeof cryptoConstants & typeof fsConstants;
- export = exp;
-}
diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts
deleted file mode 100644
index 17660cf5..00000000
--- a/node_modules/@types/node/crypto.d.ts
+++ /dev/null
@@ -1,775 +0,0 @@
-declare module "crypto" {
- import * as stream from "stream";
-
- interface Certificate {
- exportChallenge(spkac: BinaryLike): Buffer;
- exportPublicKey(spkac: BinaryLike): Buffer;
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
- }
- const Certificate: {
- new(): Certificate;
- (): Certificate;
- };
-
- namespace constants { // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants
- const OPENSSL_VERSION_NUMBER: number;
-
- /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
- const SSL_OP_ALL: number;
- /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
- const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
- /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
- const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
- /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
- const SSL_OP_CISCO_ANYCONNECT: number;
- /** Instructs OpenSSL to turn on cookie exchange. */
- const SSL_OP_COOKIE_EXCHANGE: number;
- /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
- const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
- /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
- const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
- /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */
- const SSL_OP_EPHEMERAL_RSA: number;
- /** Allows initial connection to servers that do not support RI. */
- const SSL_OP_LEGACY_SERVER_CONNECT: number;
- const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
- const SSL_OP_MICROSOFT_SESS_ID_BUG: number;
- /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */
- const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
- const SSL_OP_NETSCAPE_CA_DN_BUG: number;
- const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
- const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
- const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
- /** Instructs OpenSSL to disable support for SSL/TLS compression. */
- const SSL_OP_NO_COMPRESSION: number;
- const SSL_OP_NO_QUERY_MTU: number;
- /** Instructs OpenSSL to always start a new session when performing renegotiation. */
- const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
- const SSL_OP_NO_SSLv2: number;
- const SSL_OP_NO_SSLv3: number;
- const SSL_OP_NO_TICKET: number;
- const SSL_OP_NO_TLSv1: number;
- const SSL_OP_NO_TLSv1_1: number;
- const SSL_OP_NO_TLSv1_2: number;
- const SSL_OP_PKCS1_CHECK_1: number;
- const SSL_OP_PKCS1_CHECK_2: number;
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */
- const SSL_OP_SINGLE_DH_USE: number;
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */
- const SSL_OP_SINGLE_ECDH_USE: number;
- const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
- const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
- const SSL_OP_TLS_BLOCK_PADDING_BUG: number;
- const SSL_OP_TLS_D5_BUG: number;
- /** Instructs OpenSSL to disable version rollback attack detection. */
- const SSL_OP_TLS_ROLLBACK_BUG: number;
-
- const ENGINE_METHOD_RSA: number;
- const ENGINE_METHOD_DSA: number;
- const ENGINE_METHOD_DH: number;
- const ENGINE_METHOD_RAND: number;
- const ENGINE_METHOD_EC: number;
- const ENGINE_METHOD_CIPHERS: number;
- const ENGINE_METHOD_DIGESTS: number;
- const ENGINE_METHOD_PKEY_METHS: number;
- const ENGINE_METHOD_PKEY_ASN1_METHS: number;
- const ENGINE_METHOD_ALL: number;
- const ENGINE_METHOD_NONE: number;
-
- const DH_CHECK_P_NOT_SAFE_PRIME: number;
- const DH_CHECK_P_NOT_PRIME: number;
- const DH_UNABLE_TO_CHECK_GENERATOR: number;
- const DH_NOT_SUITABLE_GENERATOR: number;
-
- const ALPN_ENABLED: number;
-
- const RSA_PKCS1_PADDING: number;
- const RSA_SSLV23_PADDING: number;
- const RSA_NO_PADDING: number;
- const RSA_PKCS1_OAEP_PADDING: number;
- const RSA_X931_PADDING: number;
- const RSA_PKCS1_PSS_PADDING: number;
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
- const RSA_PSS_SALTLEN_DIGEST: number;
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
- const RSA_PSS_SALTLEN_MAX_SIGN: number;
- /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
- const RSA_PSS_SALTLEN_AUTO: number;
-
- const POINT_CONVERSION_COMPRESSED: number;
- const POINT_CONVERSION_UNCOMPRESSED: number;
- const POINT_CONVERSION_HYBRID: number;
-
- /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
- const defaultCoreCipherList: string;
- /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
- const defaultCipherList: string;
- }
-
- interface HashOptions extends stream.TransformOptions {
- /**
- * For XOF hash functions such as `shake256`, the
- * outputLength option can be used to specify the desired output length in bytes.
- */
- outputLength?: number;
- }
-
- /** @deprecated since v10.0.0 */
- const fips: boolean;
-
- function createHash(algorithm: string, options?: HashOptions): Hash;
- function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
-
- type Utf8AsciiLatin1Encoding = "utf8" | "ascii" | "latin1";
- type HexBase64Latin1Encoding = "latin1" | "hex" | "base64";
- type Utf8AsciiBinaryEncoding = "utf8" | "ascii" | "binary";
- type HexBase64BinaryEncoding = "binary" | "base64" | "hex";
- type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
-
- class Hash extends stream.Transform {
- private constructor();
- copy(): Hash;
- update(data: BinaryLike): Hash;
- update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hash;
- digest(): Buffer;
- digest(encoding: HexBase64Latin1Encoding): string;
- }
- class Hmac extends stream.Transform {
- private constructor();
- update(data: BinaryLike): Hmac;
- update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hmac;
- digest(): Buffer;
- digest(encoding: HexBase64Latin1Encoding): string;
- }
-
- type KeyObjectType = 'secret' | 'public' | 'private';
-
- interface KeyExportOptions {
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
- format: T;
- cipher?: string;
- passphrase?: string | Buffer;
- }
-
- class KeyObject {
- private constructor();
- asymmetricKeyType?: KeyType;
- /**
- * For asymmetric keys, this property represents the size of the embedded key in
- * bytes. This property is `undefined` for symmetric keys.
- */
- asymmetricKeySize?: number;
- export(options: KeyExportOptions<'pem'>): string | Buffer;
- export(options?: KeyExportOptions<'der'>): Buffer;
- symmetricKeySize?: number;
- type: KeyObjectType;
- }
-
- type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
- type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
-
- type BinaryLike = string | NodeJS.ArrayBufferView;
-
- type CipherKey = BinaryLike | KeyObject;
-
- interface CipherCCMOptions extends stream.TransformOptions {
- authTagLength: number;
- }
- interface CipherGCMOptions extends stream.TransformOptions {
- authTagLength?: number;
- }
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
-
- function createCipheriv(
- algorithm: CipherCCMTypes,
- key: CipherKey,
- iv: BinaryLike | null,
- options: CipherCCMOptions
- ): CipherCCM;
- function createCipheriv(
- algorithm: CipherGCMTypes,
- key: CipherKey,
- iv: BinaryLike | null,
- options?: CipherGCMOptions
- ): CipherGCM;
- function createCipheriv(
- algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions
- ): Cipher;
-
- class Cipher extends stream.Transform {
- private constructor();
- update(data: BinaryLike): Buffer;
- update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer;
- update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: HexBase64BinaryEncoding): string;
- update(data: string, input_encoding: Utf8AsciiBinaryEncoding | undefined, output_encoding: HexBase64BinaryEncoding): string;
- final(): Buffer;
- final(output_encoding: BufferEncoding): string;
- setAutoPadding(auto_padding?: boolean): this;
- // getAuthTag(): Buffer;
- // setAAD(buffer: NodeJS.ArrayBufferView): this;
- }
- interface CipherCCM extends Cipher {
- setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
- getAuthTag(): Buffer;
- }
- interface CipherGCM extends Cipher {
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- getAuthTag(): Buffer;
- }
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
-
- function createDecipheriv(
- algorithm: CipherCCMTypes,
- key: CipherKey,
- iv: BinaryLike | null,
- options: CipherCCMOptions,
- ): DecipherCCM;
- function createDecipheriv(
- algorithm: CipherGCMTypes,
- key: CipherKey,
- iv: BinaryLike | null,
- options?: CipherGCMOptions,
- ): DecipherGCM;
- function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
-
- class Decipher extends stream.Transform {
- private constructor();
- update(data: NodeJS.ArrayBufferView): Buffer;
- update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer;
- update(data: NodeJS.ArrayBufferView, input_encoding: HexBase64BinaryEncoding | undefined, output_encoding: Utf8AsciiBinaryEncoding): string;
- update(data: string, input_encoding: HexBase64BinaryEncoding | undefined, output_encoding: Utf8AsciiBinaryEncoding): string;
- final(): Buffer;
- final(output_encoding: BufferEncoding): string;
- setAutoPadding(auto_padding?: boolean): this;
- // setAuthTag(tag: NodeJS.ArrayBufferView): this;
- // setAAD(buffer: NodeJS.ArrayBufferView): this;
- }
- interface DecipherCCM extends Decipher {
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
- setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
- }
- interface DecipherGCM extends Decipher {
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- }
-
- interface PrivateKeyInput {
- key: string | Buffer;
- format?: KeyFormat;
- type?: 'pkcs1' | 'pkcs8' | 'sec1';
- passphrase?: string | Buffer;
- }
-
- interface PublicKeyInput {
- key: string | Buffer;
- format?: KeyFormat;
- type?: 'pkcs1' | 'spki';
- }
-
- function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
- function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
-
- function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
-
- type DSAEncoding = 'der' | 'ieee-p1363';
-
- interface SigningOptions {
- /**
- * @See crypto.constants.RSA_PKCS1_PADDING
- */
- padding?: number;
- saltLength?: number;
- dsaEncoding?: DSAEncoding;
- }
-
- interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {
- }
- interface SignKeyObjectInput extends SigningOptions {
- key: KeyObject;
- }
- interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {
- }
- interface VerifyKeyObjectInput extends SigningOptions {
- key: KeyObject;
- }
-
- type KeyLike = string | Buffer | KeyObject;
-
- class Signer extends stream.Writable {
- private constructor();
-
- update(data: BinaryLike): Signer;
- update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer;
- sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
- sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, output_format: HexBase64Latin1Encoding): string;
- }
-
- function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
- class Verify extends stream.Writable {
- private constructor();
-
- update(data: BinaryLike): Verify;
- update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify;
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: HexBase64Latin1Encoding): boolean;
- // https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
- // The signature field accepts a TypedArray type, but it is only available starting ES2017
- }
- function createDiffieHellman(prime_length: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman;
- function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman;
- function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding): DiffieHellman;
- function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman;
- function createDiffieHellman(prime: string, prime_encoding: HexBase64Latin1Encoding, generator: string, generator_encoding: HexBase64Latin1Encoding): DiffieHellman;
- class DiffieHellman {
- private constructor();
- generateKeys(): Buffer;
- generateKeys(encoding: HexBase64Latin1Encoding): string;
- computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
- computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
- getPrime(): Buffer;
- getPrime(encoding: HexBase64Latin1Encoding): string;
- getGenerator(): Buffer;
- getGenerator(encoding: HexBase64Latin1Encoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: HexBase64Latin1Encoding): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: HexBase64Latin1Encoding): string;
- setPublicKey(public_key: NodeJS.ArrayBufferView): void;
- setPublicKey(public_key: string, encoding: BufferEncoding): void;
- setPrivateKey(private_key: NodeJS.ArrayBufferView): void;
- setPrivateKey(private_key: string, encoding: BufferEncoding): void;
- verifyError: number;
- }
- function getDiffieHellman(group_name: string): DiffieHellman;
- function pbkdf2(
- password: BinaryLike,
- salt: BinaryLike,
- iterations: number,
- keylen: number,
- digest: string,
- callback: (err: Error | null, derivedKey: Buffer) => any,
- ): void;
- function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer;
-
- function randomBytes(size: number): Buffer;
- function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
- function pseudoRandomBytes(size: number): Buffer;
- function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
-
- function randomInt(max: number): number;
- function randomInt(min: number, max: number): number;
- function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
- function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
-
- function randomFillSync(buffer: T, offset?: number, size?: number): T;
- function randomFill(buffer: T, callback: (err: Error | null, buf: T) => void): void;
- function randomFill(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void;
- function randomFill(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void;
-
- interface ScryptOptions {
- N?: number;
- r?: number;
- p?: number;
- maxmem?: number;
- }
- function scrypt(
- password: BinaryLike,
- salt: BinaryLike,
- keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void,
- ): void;
- function scrypt(
- password: BinaryLike,
- salt: BinaryLike,
- keylen: number,
- options: ScryptOptions,
- callback: (err: Error | null, derivedKey: Buffer) => void,
- ): void;
- function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
-
- interface RsaPublicKey {
- key: KeyLike;
- padding?: number;
- }
- interface RsaPrivateKey {
- key: KeyLike;
- passphrase?: string;
- /**
- * @default 'sha1'
- */
- oaepHash?: string;
- oaepLabel?: NodeJS.TypedArray;
- padding?: number;
- }
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function getCiphers(): string[];
- function getCurves(): string[];
- function getFips(): 1 | 0;
- function getHashes(): string[];
- class ECDH {
- private constructor();
- static convertKey(
- key: BinaryLike,
- curve: string,
- inputEncoding?: HexBase64Latin1Encoding,
- outputEncoding?: "latin1" | "hex" | "base64",
- format?: "uncompressed" | "compressed" | "hybrid",
- ): Buffer | string;
- generateKeys(): Buffer;
- generateKeys(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string;
- computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding): Buffer;
- computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: HexBase64Latin1Encoding): string;
- computeSecret(other_public_key: string, input_encoding: HexBase64Latin1Encoding, output_encoding: HexBase64Latin1Encoding): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: HexBase64Latin1Encoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: HexBase64Latin1Encoding, format?: ECDHKeyFormat): string;
- setPrivateKey(private_key: NodeJS.ArrayBufferView): void;
- setPrivateKey(private_key: string, encoding: HexBase64Latin1Encoding): void;
- }
- function createECDH(curve_name: string): ECDH;
- function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
- /** @deprecated since v10.0.0 */
- const DEFAULT_ENCODING: BufferEncoding;
-
- type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
- type KeyFormat = 'pem' | 'der';
-
- interface BasePrivateKeyEncodingOptions {
- format: T;
- cipher?: string;
- passphrase?: string;
- }
-
- interface KeyPairKeyObjectResult {
- publicKey: KeyObject;
- privateKey: KeyObject;
- }
-
- interface ED25519KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface ED448KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface X25519KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface X448KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface ECKeyPairKeyObjectOptions {
- /**
- * Name of the curve to use.
- */
- namedCurve: string;
- }
-
- interface RSAKeyPairKeyObjectOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
-
- /**
- * @default 0x10001
- */
- publicExponent?: number;
- }
-
- interface DSAKeyPairKeyObjectOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
-
- /**
- * Size of q in bits
- */
- divisorLength: number;
- }
-
- interface RSAKeyPairOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
- /**
- * @default 0x10001
- */
- publicExponent?: number;
-
- publicKeyEncoding: {
- type: 'pkcs1' | 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs1' | 'pkcs8';
- };
- }
-
- interface DSAKeyPairOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
- /**
- * Size of q in bits
- */
- divisorLength: number;
-
- publicKeyEncoding: {
- type: 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs8';
- };
- }
-
- interface ECKeyPairOptions {
- /**
- * Name of the curve to use.
- */
- namedCurve: string;
-
- publicKeyEncoding: {
- type: 'pkcs1' | 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'sec1' | 'pkcs8';
- };
- }
-
- interface ED25519KeyPairOptions {
- publicKeyEncoding: {
- type: 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs8';
- };
- }
-
- interface ED448KeyPairOptions {
- publicKeyEncoding: {
- type: 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs8';
- };
- }
-
- interface X25519KeyPairOptions {
- publicKeyEncoding: {
- type: 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs8';
- };
- }
-
- interface X448KeyPairOptions {
- publicKeyEncoding: {
- type: 'spki';
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: 'pkcs8';
- };
- }
-
- interface KeyPairSyncResult {
- publicKey: T1;
- privateKey: T2;
- }
-
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult;
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
-
- namespace generateKeyPair {
- function __promisify__(type: "rsa", options: RSAKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "rsa", options: RSAKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "rsa", options: RSAKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "rsa", options: RSAKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "dsa", options: DSAKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "dsa", options: DSAKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "dsa", options: DSAKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "dsa", options: DSAKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "ec", options: ECKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "ec", options: ECKeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "ec", options: ECKeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "ec", options: ECKeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "x25519", options?: X25519KeyPairKeyObjectOptions): Promise;
-
- function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
- function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
- function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
- function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise;
- }
-
- /**
- * Calculates and returns the signature for `data` using the given private key and
- * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
- * dependent upon the key type (especially Ed25519 and Ed448).
- *
- * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
- * passed to [`crypto.createPrivateKey()`][].
- */
- function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
-
- /**
- * Calculates and returns the signature for `data` using the given private key and
- * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
- * dependent upon the key type (especially Ed25519 and Ed448).
- *
- * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
- * passed to [`crypto.createPublicKey()`][].
- */
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
-
- /**
- * Computes the Diffie-Hellman secret based on a privateKey and a publicKey.
- * Both keys must have the same asymmetricKeyType, which must be one of
- * 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
- */
- function diffieHellman(options: {
- privateKey: KeyObject;
- publicKey: KeyObject
- }): Buffer;
-}
diff --git a/node_modules/@types/node/dgram.d.ts b/node_modules/@types/node/dgram.d.ts
deleted file mode 100644
index 73f2aa71..00000000
--- a/node_modules/@types/node/dgram.d.ts
+++ /dev/null
@@ -1,141 +0,0 @@
-declare module "dgram" {
- import { AddressInfo } from "net";
- import * as dns from "dns";
- import * as events from "events";
-
- interface RemoteInfo {
- address: string;
- family: 'IPv4' | 'IPv6';
- port: number;
- size: number;
- }
-
- interface BindOptions {
- port?: number;
- address?: string;
- exclusive?: boolean;
- fd?: number;
- }
-
- type SocketType = "udp4" | "udp6";
-
- interface SocketOptions {
- type: SocketType;
- reuseAddr?: boolean;
- /**
- * @default false
- */
- ipv6Only?: boolean;
- recvBufferSize?: number;
- sendBufferSize?: number;
- lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void;
- }
-
- function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
- function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
-
- class Socket extends events.EventEmitter {
- addMembership(multicastAddress: string, multicastInterface?: string): void;
- address(): AddressInfo;
- bind(port?: number, address?: string, callback?: () => void): void;
- bind(port?: number, callback?: () => void): void;
- bind(callback?: () => void): void;
- bind(options: BindOptions, callback?: () => void): void;
- close(callback?: () => void): void;
- connect(port: number, address?: string, callback?: () => void): void;
- connect(port: number, callback: () => void): void;
- disconnect(): void;
- dropMembership(multicastAddress: string, multicastInterface?: string): void;
- getRecvBufferSize(): number;
- getSendBufferSize(): number;
- ref(): this;
- remoteAddress(): AddressInfo;
- send(msg: string | Uint8Array | ReadonlyArray, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
- send(msg: string | Uint8Array | ReadonlyArray, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
- send(msg: string | Uint8Array | ReadonlyArray, callback?: (error: Error | null, bytes: number) => void): void;
- send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
- send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
- send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
- setBroadcast(flag: boolean): void;
- setMulticastInterface(multicastInterface: string): void;
- setMulticastLoopback(flag: boolean): void;
- setMulticastTTL(ttl: number): void;
- setRecvBufferSize(size: number): void;
- setSendBufferSize(size: number): void;
- setTTL(ttl: number): void;
- unref(): this;
- /**
- * Tells the kernel to join a source-specific multicast channel at the given
- * `sourceAddress` and `groupAddress`, using the `multicastInterface` with the
- * `IP_ADD_SOURCE_MEMBERSHIP` socket option.
- * If the `multicastInterface` argument
- * is not specified, the operating system will choose one interface and will add
- * membership to it.
- * To add membership to every available interface, call
- * `socket.addSourceSpecificMembership()` multiple times, once per interface.
- */
- addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
-
- /**
- * Instructs the kernel to leave a source-specific multicast channel at the given
- * `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`
- * socket option. This method is automatically called by the kernel when the
- * socket is closed or the process terminates, so most apps will never have
- * reason to call this.
- *
- * If `multicastInterface` is not specified, the operating system will attempt to
- * drop membership on all valid interfaces.
- */
- dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. connect
- * 3. error
- * 4. listening
- * 5. message
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "close", listener: () => void): this;
- addListener(event: "connect", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "listening", listener: () => void): this;
- addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "close"): boolean;
- emit(event: "connect"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "listening"): boolean;
- emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "close", listener: () => void): this;
- on(event: "connect", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "listening", listener: () => void): this;
- on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "close", listener: () => void): this;
- once(event: "connect", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "listening", listener: () => void): this;
- once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "connect", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "listening", listener: () => void): this;
- prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "connect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "listening", listener: () => void): this;
- prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
- }
-}
diff --git a/node_modules/@types/node/dns.d.ts b/node_modules/@types/node/dns.d.ts
deleted file mode 100644
index 8ce88644..00000000
--- a/node_modules/@types/node/dns.d.ts
+++ /dev/null
@@ -1,371 +0,0 @@
-declare module "dns" {
- // Supported getaddrinfo flags.
- const ADDRCONFIG: number;
- const V4MAPPED: number;
- /**
- * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
- * well as IPv4 mapped IPv6 addresses.
- */
- const ALL: number;
-
- interface LookupOptions {
- family?: number;
- hints?: number;
- all?: boolean;
- verbatim?: boolean;
- }
-
- interface LookupOneOptions extends LookupOptions {
- all?: false;
- }
-
- interface LookupAllOptions extends LookupOptions {
- all: true;
- }
-
- interface LookupAddress {
- address: string;
- family: number;
- }
-
- function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
- function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
- function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
- function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
- function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace lookup {
- function __promisify__(hostname: string, options: LookupAllOptions): Promise;
- function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise;
- function __promisify__(hostname: string, options: LookupOptions): Promise;
- }
-
- function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
-
- namespace lookupService {
- function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
- }
-
- interface ResolveOptions {
- ttl: boolean;
- }
-
- interface ResolveWithTtlOptions extends ResolveOptions {
- ttl: true;
- }
-
- interface RecordWithTtl {
- address: string;
- ttl: number;
- }
-
- /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
- type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
-
- interface AnyARecord extends RecordWithTtl {
- type: "A";
- }
-
- interface AnyAaaaRecord extends RecordWithTtl {
- type: "AAAA";
- }
-
- interface MxRecord {
- priority: number;
- exchange: string;
- }
-
- interface AnyMxRecord extends MxRecord {
- type: "MX";
- }
-
- interface NaptrRecord {
- flags: string;
- service: string;
- regexp: string;
- replacement: string;
- order: number;
- preference: number;
- }
-
- interface AnyNaptrRecord extends NaptrRecord {
- type: "NAPTR";
- }
-
- interface SoaRecord {
- nsname: string;
- hostmaster: string;
- serial: number;
- refresh: number;
- retry: number;
- expire: number;
- minttl: number;
- }
-
- interface AnySoaRecord extends SoaRecord {
- type: "SOA";
- }
-
- interface SrvRecord {
- priority: number;
- weight: number;
- port: number;
- name: string;
- }
-
- interface AnySrvRecord extends SrvRecord {
- type: "SRV";
- }
-
- interface AnyTxtRecord {
- type: "TXT";
- entries: string[];
- }
-
- interface AnyNsRecord {
- type: "NS";
- value: string;
- }
-
- interface AnyPtrRecord {
- type: "PTR";
- value: string;
- }
-
- interface AnyCnameRecord {
- type: "CNAME";
- value: string;
- }
-
- type AnyRecord = AnyARecord |
- AnyAaaaRecord |
- AnyCnameRecord |
- AnyMxRecord |
- AnyNaptrRecord |
- AnyNsRecord |
- AnyPtrRecord |
- AnySoaRecord |
- AnySrvRecord |
- AnyTxtRecord;
-
- function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
- function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
- function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
- function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
- function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
- function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
- function resolve(
- hostname: string,
- rrtype: string,
- callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void,
- ): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace resolve {
- function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise;
- function __promisify__(hostname: string, rrtype: "ANY"): Promise;
- function __promisify__(hostname: string, rrtype: "MX"): Promise;
- function __promisify__(hostname: string, rrtype: "NAPTR"): Promise;
- function __promisify__(hostname: string, rrtype: "SOA"): Promise;
- function __promisify__(hostname: string, rrtype: "SRV"): Promise;
- function __promisify__(hostname: string, rrtype: "TXT"): Promise;
- function __promisify__(hostname: string, rrtype: string): Promise;
- }
-
- function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
- function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace resolve4 {
- function __promisify__(hostname: string): Promise;
- function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise;
- function __promisify__(hostname: string, options?: ResolveOptions): Promise;
- }
-
- function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
- function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace resolve6 {
- function __promisify__(hostname: string): Promise;
- function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise;
- function __promisify__(hostname: string, options?: ResolveOptions): Promise;
- }
-
- function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- namespace resolveCname {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
- namespace resolveMx {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
- namespace resolveNaptr {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- namespace resolveNs {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
- namespace resolvePtr {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
- namespace resolveSoa {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
- namespace resolveSrv {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
- namespace resolveTxt {
- function __promisify__(hostname: string): Promise;
- }
-
- function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
- namespace resolveAny {
- function __promisify__(hostname: string): Promise;
- }
-
- function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
- function setServers(servers: ReadonlyArray): void;
- function getServers(): string[];
-
- // Error codes
- const NODATA: string;
- const FORMERR: string;
- const SERVFAIL: string;
- const NOTFOUND: string;
- const NOTIMP: string;
- const REFUSED: string;
- const BADQUERY: string;
- const BADNAME: string;
- const BADFAMILY: string;
- const BADRESP: string;
- const CONNREFUSED: string;
- const TIMEOUT: string;
- const EOF: string;
- const FILE: string;
- const NOMEM: string;
- const DESTRUCTION: string;
- const BADSTR: string;
- const BADFLAGS: string;
- const NONAME: string;
- const BADHINTS: string;
- const NOTINITIALIZED: string;
- const LOADIPHLPAPI: string;
- const ADDRGETNETWORKPARAMS: string;
- const CANCELLED: string;
-
- class Resolver {
- getServers: typeof getServers;
- setServers: typeof setServers;
- resolve: typeof resolve;
- resolve4: typeof resolve4;
- resolve6: typeof resolve6;
- resolveAny: typeof resolveAny;
- resolveCname: typeof resolveCname;
- resolveMx: typeof resolveMx;
- resolveNaptr: typeof resolveNaptr;
- resolveNs: typeof resolveNs;
- resolvePtr: typeof resolvePtr;
- resolveSoa: typeof resolveSoa;
- resolveSrv: typeof resolveSrv;
- resolveTxt: typeof resolveTxt;
- reverse: typeof reverse;
- cancel(): void;
- }
-
- namespace promises {
- function getServers(): string[];
-
- function lookup(hostname: string, family: number): Promise;
- function lookup(hostname: string, options: LookupOneOptions): Promise;
- function lookup(hostname: string, options: LookupAllOptions): Promise;
- function lookup(hostname: string, options: LookupOptions): Promise;
- function lookup(hostname: string): Promise;
-
- function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
-
- function resolve(hostname: string): Promise;
- function resolve(hostname: string, rrtype: "A"): Promise;
- function resolve(hostname: string, rrtype: "AAAA"): Promise;
- function resolve(hostname: string, rrtype: "ANY"): Promise;
- function resolve(hostname: string, rrtype: "CNAME"): Promise;
- function resolve(hostname: string, rrtype: "MX"): Promise;
- function resolve(hostname: string, rrtype: "NAPTR"): Promise;
- function resolve(hostname: string, rrtype: "NS"): Promise;
- function resolve(hostname: string, rrtype: "PTR"): Promise;
- function resolve(hostname: string, rrtype: "SOA"): Promise;
- function resolve(hostname: string, rrtype: "SRV"): Promise;
- function resolve(hostname: string, rrtype: "TXT"): Promise;
- function resolve(hostname: string, rrtype: string): Promise;
-
- function resolve4(hostname: string): Promise;
- function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise;
- function resolve4(hostname: string, options: ResolveOptions): Promise;
-
- function resolve6(hostname: string): Promise;
- function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise;
- function resolve6(hostname: string, options: ResolveOptions): Promise;
-
- function resolveAny(hostname: string): Promise;
-
- function resolveCname(hostname: string): Promise;
-
- function resolveMx(hostname: string): Promise;
-
- function resolveNaptr(hostname: string): Promise;
-
- function resolveNs(hostname: string): Promise;
-
- function resolvePtr(hostname: string): Promise;
-
- function resolveSoa(hostname: string): Promise;
-
- function resolveSrv(hostname: string): Promise;
-
- function resolveTxt(hostname: string): Promise;
-
- function reverse(ip: string): Promise;
-
- function setServers(servers: ReadonlyArray): void;
-
- class Resolver {
- getServers: typeof getServers;
- resolve: typeof resolve;
- resolve4: typeof resolve4;
- resolve6: typeof resolve6;
- resolveAny: typeof resolveAny;
- resolveCname: typeof resolveCname;
- resolveMx: typeof resolveMx;
- resolveNaptr: typeof resolveNaptr;
- resolveNs: typeof resolveNs;
- resolvePtr: typeof resolvePtr;
- resolveSoa: typeof resolveSoa;
- resolveSrv: typeof resolveSrv;
- resolveTxt: typeof resolveTxt;
- reverse: typeof reverse;
- setServers: typeof setServers;
- }
- }
-}
diff --git a/node_modules/@types/node/domain.d.ts b/node_modules/@types/node/domain.d.ts
deleted file mode 100644
index 63dcc9b0..00000000
--- a/node_modules/@types/node/domain.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-declare module "domain" {
- import { EventEmitter } from "events";
-
- global {
- namespace NodeJS {
- interface Domain extends EventEmitter {
- run(fn: (...args: any[]) => T, ...args: any[]): T;
- add(emitter: EventEmitter | Timer): void;
- remove(emitter: EventEmitter | Timer): void;
- bind(cb: T): T;
- intercept(cb: T): T;
- }
- }
- }
-
- interface Domain extends NodeJS.Domain {}
- class Domain extends EventEmitter {
- members: Array;
- enter(): void;
- exit(): void;
- }
-
- function create(): Domain;
-}
diff --git a/node_modules/@types/node/events.d.ts b/node_modules/@types/node/events.d.ts
deleted file mode 100644
index c7399f18..00000000
--- a/node_modules/@types/node/events.d.ts
+++ /dev/null
@@ -1,83 +0,0 @@
-declare module "events" {
- interface EventEmitterOptions {
- /**
- * Enables automatic capturing of promise rejection.
- */
- captureRejections?: boolean;
- }
-
- interface NodeEventTarget {
- once(event: string | symbol, listener: (...args: any[]) => void): this;
- }
-
- interface DOMEventTarget {
- addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
- }
-
- namespace EventEmitter {
- function once(emitter: NodeEventTarget, event: string | symbol): Promise;
- function once(emitter: DOMEventTarget, event: string): Promise;
- function on(emitter: EventEmitter, event: string): AsyncIterableIterator;
- const captureRejectionSymbol: unique symbol;
-
- /**
- * This symbol shall be used to install a listener for only monitoring `'error'`
- * events. Listeners installed using this symbol are called before the regular
- * `'error'` listeners are called.
- *
- * Installing a listener using this symbol does not change the behavior once an
- * `'error'` event is emitted, therefore the process will still crash if no
- * regular `'error'` listener is installed.
- */
- const errorMonitor: unique symbol;
- /**
- * Sets or gets the default captureRejection value for all emitters.
- */
- let captureRejections: boolean;
-
- interface EventEmitter extends NodeJS.EventEmitter {
- }
-
- class EventEmitter {
- constructor(options?: EventEmitterOptions);
- /** @deprecated since v4.0.0 */
- static listenerCount(emitter: EventEmitter, event: string | symbol): number;
- static defaultMaxListeners: number;
- /**
- * This symbol shall be used to install a listener for only monitoring `'error'`
- * events. Listeners installed using this symbol are called before the regular
- * `'error'` listeners are called.
- *
- * Installing a listener using this symbol does not change the behavior once an
- * `'error'` event is emitted, therefore the process will still crash if no
- * regular `'error'` listener is installed.
- */
- static readonly errorMonitor: unique symbol;
- }
- }
-
- global {
- namespace NodeJS {
- interface EventEmitter {
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
- on(event: string | symbol, listener: (...args: any[]) => void): this;
- once(event: string | symbol, listener: (...args: any[]) => void): this;
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
- off(event: string | symbol, listener: (...args: any[]) => void): this;
- removeAllListeners(event?: string | symbol): this;
- setMaxListeners(n: number): this;
- getMaxListeners(): number;
- listeners(event: string | symbol): Function[];
- rawListeners(event: string | symbol): Function[];
- emit(event: string | symbol, ...args: any[]): boolean;
- listenerCount(event: string | symbol): number;
- // Added in Node 6...
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
- eventNames(): Array;
- }
- }
- }
-
- export = EventEmitter;
-}
diff --git a/node_modules/@types/node/fs.d.ts b/node_modules/@types/node/fs.d.ts
deleted file mode 100644
index c9710216..00000000
--- a/node_modules/@types/node/fs.d.ts
+++ /dev/null
@@ -1,2239 +0,0 @@
-declare module "fs" {
- import * as stream from "stream";
- import * as events from "events";
- import { URL } from "url";
- import * as promises from 'fs/promises';
-
- export { promises };
- /**
- * Valid types for path values in "fs".
- */
- export type PathLike = string | Buffer | URL;
-
- export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void;
-
- export type BufferEncodingOption = 'buffer' | { encoding: 'buffer' };
-
- export interface BaseEncodingOptions {
- encoding?: BufferEncoding | null;
- }
-
- export type OpenMode = number | string;
-
- export type Mode = number | string;
-
- export interface StatsBase {
- isFile(): boolean;
- isDirectory(): boolean;
- isBlockDevice(): boolean;
- isCharacterDevice(): boolean;
- isSymbolicLink(): boolean;
- isFIFO(): boolean;
- isSocket(): boolean;
-
- dev: T;
- ino: T;
- mode: T;
- nlink: T;
- uid: T;
- gid: T;
- rdev: T;
- size: T;
- blksize: T;
- blocks: T;
- atimeMs: T;
- mtimeMs: T;
- ctimeMs: T;
- birthtimeMs: T;
- atime: Date;
- mtime: Date;
- ctime: Date;
- birthtime: Date;
- }
-
- export interface Stats extends StatsBase {
- }
-
- export class Stats {
- }
-
- export class Dirent {
- isFile(): boolean;
- isDirectory(): boolean;
- isBlockDevice(): boolean;
- isCharacterDevice(): boolean;
- isSymbolicLink(): boolean;
- isFIFO(): boolean;
- isSocket(): boolean;
- name: string;
- }
-
- /**
- * A class representing a directory stream.
- */
- export class Dir {
- readonly path: string;
-
- /**
- * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read.
- */
- [Symbol.asyncIterator](): AsyncIterableIterator;
-
- /**
- * Asynchronously close the directory's underlying resource handle.
- * Subsequent reads will result in errors.
- */
- close(): Promise;
- close(cb: NoParamCallback): void;
-
- /**
- * Synchronously close the directory's underlying resource handle.
- * Subsequent reads will result in errors.
- */
- closeSync(): void;
-
- /**
- * Asynchronously read the next directory entry via `readdir(3)` as an `Dirent`.
- * After the read is completed, a value is returned that will be resolved with an `Dirent`, or `null` if there are no more directory entries to read.
- * Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms.
- */
- read(): Promise;
- read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void;
-
- /**
- * Synchronously read the next directory entry via `readdir(3)` as a `Dirent`.
- * If there are no more directory entries to read, null will be returned.
- * Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms.
- */
- readSync(): Dirent;
- }
-
- export interface FSWatcher extends events.EventEmitter {
- close(): void;
-
- /**
- * events.EventEmitter
- * 1. change
- * 2. error
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- addListener(event: "error", listener: (error: Error) => void): this;
- addListener(event: "close", listener: () => void): this;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- on(event: "error", listener: (error: Error) => void): this;
- on(event: "close", listener: () => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- once(event: "error", listener: (error: Error) => void): this;
- once(event: "close", listener: () => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- prependListener(event: "error", listener: (error: Error) => void): this;
- prependListener(event: "close", listener: () => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
- prependOnceListener(event: "close", listener: () => void): this;
- }
-
- export class ReadStream extends stream.Readable {
- close(): void;
- bytesRead: number;
- path: string | Buffer;
- pending: boolean;
-
- /**
- * events.EventEmitter
- * 1. open
- * 2. close
- * 3. ready
- */
- addListener(event: "close", listener: () => void): this;
- addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- addListener(event: "end", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "open", listener: (fd: number) => void): this;
- addListener(event: "pause", listener: () => void): this;
- addListener(event: "readable", listener: () => void): this;
- addListener(event: "ready", listener: () => void): this;
- addListener(event: "resume", listener: () => void): this;
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
-
- on(event: "close", listener: () => void): this;
- on(event: "data", listener: (chunk: Buffer | string) => void): this;
- on(event: "end", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "open", listener: (fd: number) => void): this;
- on(event: "pause", listener: () => void): this;
- on(event: "readable", listener: () => void): this;
- on(event: "ready", listener: () => void): this;
- on(event: "resume", listener: () => void): this;
- on(event: string | symbol, listener: (...args: any[]) => void): this;
-
- once(event: "close", listener: () => void): this;
- once(event: "data", listener: (chunk: Buffer | string) => void): this;
- once(event: "end", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "open", listener: (fd: number) => void): this;
- once(event: "pause", listener: () => void): this;
- once(event: "readable", listener: () => void): this;
- once(event: "ready", listener: () => void): this;
- once(event: "resume", listener: () => void): this;
- once(event: string | symbol, listener: (...args: any[]) => void): this;
-
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- prependListener(event: "end", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "open", listener: (fd: number) => void): this;
- prependListener(event: "pause", listener: () => void): this;
- prependListener(event: "readable", listener: () => void): this;
- prependListener(event: "ready", listener: () => void): this;
- prependListener(event: "resume", listener: () => void): this;
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
-
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
- prependOnceListener(event: "end", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "open", listener: (fd: number) => void): this;
- prependOnceListener(event: "pause", listener: () => void): this;
- prependOnceListener(event: "readable", listener: () => void): this;
- prependOnceListener(event: "ready", listener: () => void): this;
- prependOnceListener(event: "resume", listener: () => void): this;
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
- }
-
- export class WriteStream extends stream.Writable {
- close(): void;
- bytesWritten: number;
- path: string | Buffer;
- pending: boolean;
-
- /**
- * events.EventEmitter
- * 1. open
- * 2. close
- * 3. ready
- */
- addListener(event: "close", listener: () => void): this;
- addListener(event: "drain", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "finish", listener: () => void): this;
- addListener(event: "open", listener: (fd: number) => void): this;
- addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
- addListener(event: "ready", listener: () => void): this;
- addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
-
- on(event: "close", listener: () => void): this;
- on(event: "drain", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "finish", listener: () => void): this;
- on(event: "open", listener: (fd: number) => void): this;
- on(event: "pipe", listener: (src: stream.Readable) => void): this;
- on(event: "ready", listener: () => void): this;
- on(event: "unpipe", listener: (src: stream.Readable) => void): this;
- on(event: string | symbol, listener: (...args: any[]) => void): this;
-
- once(event: "close", listener: () => void): this;
- once(event: "drain", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "finish", listener: () => void): this;
- once(event: "open", listener: (fd: number) => void): this;
- once(event: "pipe", listener: (src: stream.Readable) => void): this;
- once(event: "ready", listener: () => void): this;
- once(event: "unpipe", listener: (src: stream.Readable) => void): this;
- once(event: string | symbol, listener: (...args: any[]) => void): this;
-
- prependListener(event: "close", listener: () => void): this;
- prependListener(event: "drain", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "finish", listener: () => void): this;
- prependListener(event: "open", listener: (fd: number) => void): this;
- prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
- prependListener(event: "ready", listener: () => void): this;
- prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
-
- prependOnceListener(event: "close", listener: () => void): this;
- prependOnceListener(event: "drain", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(event: "finish", listener: () => void): this;
- prependOnceListener(event: "open", listener: (fd: number) => void): this;
- prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
- prependOnceListener(event: "ready", listener: () => void): this;
- prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
- }
-
- /**
- * Asynchronous rename(2) - Change the name or location of a file or directory.
- * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- */
- export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace rename {
- /**
- * Asynchronous rename(2) - Change the name or location of a file or directory.
- * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- */
- function __promisify__(oldPath: PathLike, newPath: PathLike): Promise;
- }
-
- /**
- * Synchronous rename(2) - Change the name or location of a file or directory.
- * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- */
- export function renameSync(oldPath: PathLike, newPath: PathLike): void;
-
- /**
- * Asynchronous truncate(2) - Truncate a file to a specified length.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param len If not specified, defaults to `0`.
- */
- export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void;
-
- /**
- * Asynchronous truncate(2) - Truncate a file to a specified length.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * URL support is _experimental_.
- */
- export function truncate(path: PathLike, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace truncate {
- /**
- * Asynchronous truncate(2) - Truncate a file to a specified length.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param len If not specified, defaults to `0`.
- */
- function __promisify__(path: PathLike, len?: number | null): Promise;
- }
-
- /**
- * Synchronous truncate(2) - Truncate a file to a specified length.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param len If not specified, defaults to `0`.
- */
- export function truncateSync(path: PathLike, len?: number | null): void;
-
- /**
- * Asynchronous ftruncate(2) - Truncate a file to a specified length.
- * @param fd A file descriptor.
- * @param len If not specified, defaults to `0`.
- */
- export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void;
-
- /**
- * Asynchronous ftruncate(2) - Truncate a file to a specified length.
- * @param fd A file descriptor.
- */
- export function ftruncate(fd: number, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace ftruncate {
- /**
- * Asynchronous ftruncate(2) - Truncate a file to a specified length.
- * @param fd A file descriptor.
- * @param len If not specified, defaults to `0`.
- */
- function __promisify__(fd: number, len?: number | null): Promise;
- }
-
- /**
- * Synchronous ftruncate(2) - Truncate a file to a specified length.
- * @param fd A file descriptor.
- * @param len If not specified, defaults to `0`.
- */
- export function ftruncateSync(fd: number, len?: number | null): void;
-
- /**
- * Asynchronous chown(2) - Change ownership of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace chown {
- /**
- * Asynchronous chown(2) - Change ownership of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- function __promisify__(path: PathLike, uid: number, gid: number): Promise;
- }
-
- /**
- * Synchronous chown(2) - Change ownership of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function chownSync(path: PathLike, uid: number, gid: number): void;
-
- /**
- * Asynchronous fchown(2) - Change ownership of a file.
- * @param fd A file descriptor.
- */
- export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace fchown {
- /**
- * Asynchronous fchown(2) - Change ownership of a file.
- * @param fd A file descriptor.
- */
- function __promisify__(fd: number, uid: number, gid: number): Promise;
- }
-
- /**
- * Synchronous fchown(2) - Change ownership of a file.
- * @param fd A file descriptor.
- */
- export function fchownSync(fd: number, uid: number, gid: number): void;
-
- /**
- * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace lchown {
- /**
- * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- function __promisify__(path: PathLike, uid: number, gid: number): Promise;
- }
-
- /**
- * Synchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function lchownSync(path: PathLike, uid: number, gid: number): void;
-
- /**
- * Changes the access and modification times of a file in the same way as `fs.utimes()`,
- * with the difference that if the path refers to a symbolic link, then the link is not
- * dereferenced: instead, the timestamps of the symbolic link itself are changed.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param atime The last access time. If a string is provided, it will be coerced to number.
- * @param mtime The last modified time. If a string is provided, it will be coerced to number.
- */
- export function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace lutimes {
- /**
- * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`,
- * with the difference that if the path refers to a symbolic link, then the link is not
- * dereferenced: instead, the timestamps of the symbolic link itself are changed.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param atime The last access time. If a string is provided, it will be coerced to number.
- * @param mtime The last modified time. If a string is provided, it will be coerced to number.
- */
- function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise;
- }
-
- /**
- * Change the file system timestamps of the symbolic link referenced by `path`. Returns `undefined`,
- * or throws an exception when parameters are incorrect or the operation fails.
- * This is the synchronous version of `fs.lutimes()`.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param atime The last access time. If a string is provided, it will be coerced to number.
- * @param mtime The last modified time. If a string is provided, it will be coerced to number.
- */
- export function lutimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void;
-
- /**
- * Asynchronous chmod(2) - Change permissions of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace chmod {
- /**
- * Asynchronous chmod(2) - Change permissions of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- function __promisify__(path: PathLike, mode: Mode): Promise;
- }
-
- /**
- * Synchronous chmod(2) - Change permissions of a file.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function chmodSync(path: PathLike, mode: Mode): void;
-
- /**
- * Asynchronous fchmod(2) - Change permissions of a file.
- * @param fd A file descriptor.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace fchmod {
- /**
- * Asynchronous fchmod(2) - Change permissions of a file.
- * @param fd A file descriptor.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- function __promisify__(fd: number, mode: Mode): Promise;
- }
-
- /**
- * Synchronous fchmod(2) - Change permissions of a file.
- * @param fd A file descriptor.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function fchmodSync(fd: number, mode: Mode): void;
-
- /**
- * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace lchmod {
- /**
- * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- function __promisify__(path: PathLike, mode: Mode): Promise;
- }
-
- /**
- * Synchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
- */
- export function lchmodSync(path: PathLike, mode: Mode): void;
-
- /**
- * Asynchronous stat(2) - Get file status.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
- export function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
- export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace stat {
- /**
- * Asynchronous stat(2) - Get file status.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- function __promisify__(path: PathLike, options: BigIntOptions): Promise;
- function __promisify__(path: PathLike, options: StatOptions): Promise;
- function __promisify__(path: PathLike): Promise;
- }
-
- /**
- * Synchronous stat(2) - Get file status.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
- export function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
- export function statSync(path: PathLike): Stats;
-
- /**
- * Asynchronous fstat(2) - Get file status.
- * @param fd A file descriptor.
- */
- export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace fstat {
- /**
- * Asynchronous fstat(2) - Get file status.
- * @param fd A file descriptor.
- */
- function __promisify__(fd: number): Promise;
- }
-
- /**
- * Synchronous fstat(2) - Get file status.
- * @param fd A file descriptor.
- */
- export function fstatSync(fd: number): Stats;
-
- /**
- * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- export namespace lstat {
- /**
- * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
- */
- function __promisify__(path: PathLike): Promise