import type { BuildOutput } from "@valbuild/tanstack-build"; import type { BuildTargetResponse } from "../internal/index.js"; import type { QuickPreviewFiles } from "../internal/quickPreview.js"; import type { StudioBuilder } from "./builder.js"; export type QuickPreviewOutcome = { status: "built"; files: QuickPreviewFiles; /** What the proposal's files were staged as: the build is of these. */ inputs: string | null; } | { status: "failed"; message: string; }; export declare function buildQuickPreview(deps: { name: string; /** The proposal's files, and what they build on. */ proposals: { files(name: string): Promise<{ files: Record; staged: { inputs: string | null; }; }>; buildTarget(name: string): Promise<{ target: BuildTargetResponse; layer: "site" | "own"; }>; }; /** The site's source, which the proposal's files are laid over. */ siteSource: () => Promise | null>; /** The site's build target: what the proposal's address serves. */ siteTarget: () => Promise; loadBuilder: () => Promise; /** Generates `src/routeTree.gen.ts`: see `runStudioDeploy`. */ generateRouteTree?: (files: Record) => Promise>; /** Each step as it begins: for the tab's progress and timings. */ onStep?: (label: string) => void; signal?: AbortSignal; }): Promise; /** * The browser half of a build, as the worker serves it under `/_app/`. The * stylesheet only when the tab compiled one: an empty one is the case where a * build ships the site's live stylesheet (`liveStylesheet` on * `runStudioDeploy`), and the page already has that. */ export declare function clientFilesOf(build: BuildOutput): QuickPreviewFiles;