/**
 * build-if-stale.ts — Phase B2 of olam-world-bundle-freshness.
 *
 * Compares the max mtime across source files in
 * `packages/intelligence/src/agent-stream/` against the min mtime
 * across compiled files in `packages/intelligence/dist/agent-stream/`.
 * When source is newer (or dist is absent), triggers an incremental
 * `npm run build --workspace=@olam/intelligence` build.
 *
 * Call site: `olam restart` (B2) and `olam create` (B3).
 *
 * Design decisions (from olam-world-bundle-freshness design doc):
 *   - No file-watch daemon — the bind-mount IS the watch.
 *   - Build failure is fatal: do NOT restart/create with a stale bundle.
 *   - Skip when source-mode is false (install-mode CLI has no source tree).
 */
export interface BuildIfStaleResult {
    /** true = dist is current (build skipped or succeeded). false = build failed. */
    readonly ok: boolean;
    /** Whether a build was triggered. */
    readonly built: boolean;
    /** Diagnostic message for logging. */
    readonly message: string;
}
/**
 * Check whether the agent-stream dist is stale relative to source; if so,
 * trigger `npm run build --workspace=@olam/intelligence` with an ora spinner.
 *
 * @param repoRoot - Absolute path to the repo root (must contain `packages/`).
 * @param env - Process env for isDevMode check. Defaults to `process.env`.
 */
export declare function buildIfStale(repoRoot: string, env?: NodeJS.ProcessEnv): BuildIfStaleResult;
//# sourceMappingURL=build-if-stale.d.ts.map