export type BundlerBuildResult = { buildUpdatedAtMs: number; } & ({ type: "success"; bundlePath: string; } | { type: "failure"; errorMessage: string; }); export type BundlerRpcFunctions = { waitForAvailableBuild: () => Promise; }; export type HttpServerRpcFunctions = { onBuildStart: () => void; onBuildEnd: (build: BundlerBuildResult) => void; };