import type yargs from 'yargs-parser'; import type { AstroSettings, RuntimeMode } from '../../@types/astro'; import { type LogOptions } from '../logger/core.js'; export interface BuildOptions { mode?: RuntimeMode; logging: LogOptions; /** * Teardown the compiler WASM instance after build. This can improve performance when * building once, but may cause a performance hit if building multiple times in a row. */ teardownCompiler?: boolean; flags?: yargs.Arguments; } /** `astro build` */ export default function build(settings: AstroSettings, options: BuildOptions): Promise;