/// <reference types="node" />
/**
 * Runs the finite Next production build used by local Agents Server commands.
 *
 * @private internal utility of `buildAgentsServer`
 */
export declare function runNextBuild(options: {
    readonly appPath: string;
    readonly environment: NodeJS.ProcessEnv;
    readonly nextCliPath: string;
    readonly onBuildOutput?: (chunk: string) => void;
}): Promise<void>;
