import type { EnableFlags, FrontendConfig } from '../types.js'; export interface BuilderContext { readonly config: FrontendConfig; readonly changedFile?: string; readonly enable?: EnableFlags; readonly env?: Record; } export interface Builder { readonly name: string; build(context: BuilderContext): Promise; publish(context: BuilderContext): Promise; } export type BuilderFactory = (context: BuilderContext) => Builder;