import { type Metafile } from "esbuild"; export declare const AUTOMATION_BUILD_DIR = ".automate/build"; export declare const AUTOMATION_PROJECT_ENTRYPOINT = "project.mjs"; export interface AutomationFile { path: string; relativePath: string; } export interface AutomationBuildManifestEntry { identityKey: string; } export interface AutomationBuildResult { artifact: Blob; manifest: AutomationBuildManifestEntry[]; metafile?: Metafile; runtimeProtocolVersion?: number; } export interface AutomationBuildOptions { /** Include esbuild's module contribution metadata in the result. */ metafile?: boolean; } /** * Finds automation entry points below a project directory. * * @param dir - Project directory to search. */ export declare function findAutomationFiles(dir: string): Promise<{ path: string; relativePath: string; }[]>; /** * Builds every automation into one statically dispatched project artifact. * * @param projectDir - Project directory that owns the automations. * @param automationFiles - Automation entry points to build. * @param options - Optional build diagnostics. */ export declare function buildAutomations(projectDir: string, automationFiles: AutomationFile[], options?: AutomationBuildOptions): Promise; //# sourceMappingURL=automation-build.d.ts.map