File
Blob: src/node/internal/process.d.ts
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | export function getEnvObject(): Record<string, string>; |
| 6 | export function getBuiltinModule(id: string): object; |
| 7 | export function exitImpl(code: number): void; |
| 8 | export function getCwd(): string; |
| 9 | export function setCwd(path: string): void; |
| 10 | export const versions: Record<string, string>; |
| 11 | export const platform: string; |
| 12 | |
| 13 | declare global { |
| 14 | const Cloudflare: { |
| 15 | readonly compatibilityFlags: Record<string, boolean> & { |
| 16 | enable_streams_nodejs_v24_compat: boolean; |
| 17 | }; |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | interface ErrorWithDetail extends Error { |
| 22 | detail?: unknown; |
| 23 | } |
| 24 | |
| 25 | interface EmitWarningOptions { |
| 26 | type?: string | undefined; |
| 27 | code?: string | undefined; |
| 28 | ctor?: ErrorConstructor | undefined; |
| 29 | detail?: string | undefined; |
| 30 | } |