import type * as TanstackBuild from "@valbuild/tanstack-build"; type Builder = typeof TanstackBuild; /** * What the Studio uses out of the builder package: five methods, each of which * may answer later. * * Later because the builder runs in a worker (`importBuilder` in `@valbuild/ui`'s `loadBuilder.ts`), so * even `bakedGit` -- synchronous in the package -- is a round trip here. The * package module itself still satisfies this type, which is what lets a test * hand one in. */ export type StudioBuilder = { bakedGit: (...args: Parameters) => ReturnType | Promise>; rebakeGit: (...args: Parameters) => ReturnType | Promise>; buildUserApp: Builder["buildUserApp"]; publishArtifacts: Builder["publishArtifacts"]; /** A build's name, before building it: see `buildInputId`. */ buildInputId: Builder["buildInputId"]; /** * A tree's Val modules, as one module to evaluate: see `bundleValModules`. * The Studio evaluates the code; what each module depends on is for the * server build (`moduleDependencies`), and tells the Studio which files a * write has to touch to change the evaluation (`stagedCodeReach` in * `@valbuild/ui`). */ bundleValModules: (...args: Parameters) => Promise>, "code"> & Partial>, "dependencies">>>; }; export {};