bun-ambient.d.ts
1/**2 * Ambient declarations for the Bun APIs the release scripts use.3 *4 * Bun's own type package is not a dependency of this repository, and the5 * scripts touched by PB-26-912 use exactly two Bun entry points. Declaring6 * them here lets the scripts directory join the strict TypeScript project7 * instead of sitting outside every gate.8 */910declare module "bun" {11 export interface BunSyncResult {12 success: boolean;13 exitCode: number;14 stdout: Uint8Array;15 stderr: Uint8Array;16 }1718 export function spawnSync(command: string[], options?: Record<string, unknown>): BunSyncResult;19}2021declare const Bun: {22 file(path: string): { text(): Promise<string> };23 spawnSync(command: string[], options?: Record<string, unknown>): import("bun").BunSyncResult;24};