declare const Bun: { argv: string[]; version: string; }; declare const process: { cwd(): string; exitCode?: number; env: Record; }; declare const crypto: { getRandomValues(array: T): T; }; interface ImportMeta { dir: string; } declare module "node:child_process" { export function exec(command: string, options: { cwd?: string; timeout?: number }, callback: (error: Error | null, stdout: string, stderr: string) => void): void; } declare module "node:fs/promises" { type FileStat = { readonly nlink: number; isDirectory(): boolean; isFile(): boolean; isSymbolicLink(): boolean; }; type FileHandle = { stat(): Promise; readFile(encoding: "utf8"): Promise; writeFile(content: string, encoding: "utf8"): Promise; close(): Promise; }; export function mkdir(path: string, options?: { recursive?: boolean }): Promise; export function mkdtemp(prefix: string): Promise; export function lstat(path: string): Promise; export function link(existingPath: string, newPath: string): Promise; export function open(path: string, flags: number, mode?: number): Promise; export function readFile(path: string, encoding: "utf8"): Promise; export function readdir(path: string): Promise; export function realpath(path: string): Promise; export function rename(oldPath: string, newPath: string): Promise; export function rm(path: string, options?: { force?: boolean; recursive?: boolean }): Promise; export function stat(path: string): Promise; export function symlink(target: string, path: string): Promise; export function unlink(path: string): Promise; export function writeFile(path: string, content: string, encoding: "utf8"): Promise; } declare module "node:fs" { export const constants: { readonly O_CREAT: number; readonly O_EXCL: number; readonly O_NOFOLLOW?: number; readonly O_RDONLY: number; readonly O_WRONLY: number; }; } declare module "node:os" { export function homedir(): string; export function tmpdir(): string; } declare module "node:path" { export function dirname(path: string): string; export function join(...parts: string[]): string; export function relative(from: string, to: string): string; export function resolve(...parts: string[]): string; export const sep: string; } declare module "node:util" { export function promisify( fn: (...args: [...TArgs, (error: Error | null, result: TResult) => void]) => void ): (...args: TArgs) => Promise; } declare module "bun:test" { export function describe(name: string, fn: () => void): void; export function test(name: string, fn: () => Promise | void): void; type Matchers = { toBe(expected: unknown): void; toBeNull(): void; toContain(expected: unknown): void; toBeGreaterThan(expected: number): void; toBeGreaterThanOrEqual(expected: number): void; toEqual(expected: unknown): void; toHaveLength(expected: number): void; toMatch(expected: RegExp): void; readonly not: Matchers; readonly rejects: { toThrow(expected: string): Promise; }; }; export const expect: (value: unknown) => Matchers; }