declare module "node:fs" {
  export const promises: {
    mkdir(path: string, options?: { recursive?: boolean }): Promise<void>;
    rm(path: string, options?: { force?: boolean }): Promise<void>;
    writeFile(path: string, data: string, encoding: string): Promise<void>;
    rename(from: string, to: string): Promise<void>;
    readFile(path: string, encoding: string): Promise<string>;
  };
}

declare module "node:path" {
  const path: { join(...parts: string[]): string };
  export default path;
}

declare const Buffer: {
  from(value: string, encoding?: string): { toString(encoding?: string): string };
};

declare const process: {
  pid: number;
  cwd(): string;
  env: Record<string, string | undefined>;
};
