/**
 * Server "recipes" — reusable bash scripts run on demand across one or more
 * provisioned servers, as a chosen user (Forge's Recipes feature). The driver
 * fans a recipe out over the target servers (SSH/SSM); this module builds the
 * single wrapped script that runs on each box: it sets a strict shell, runs the
 * recipe body as the requested user with a login shell (so PATH/pantry env are
 * loaded), and prints clear begin/end markers + the exit code so captured
 * output is easy to scan.
 */
export interface ServerRecipeOptions {
    /** Recipe name (shown in the output markers). */
    name: string;
    /** The recipe body — bash command lines run on the server. */
    script: string[];
    /**
     * User to run the recipe as. Defaults to `root`. A non-root user is invoked
     * via `runuser -l` so it gets a login shell (profile + PATH, incl. pantry).
     */
    user?: string;
}
/**
 * Build the wrapped recipe script run on a server. The body is written to a
 * temp file and executed as `user`; the wrapper captures the exit code and
 * prints `__TS_CLOUD_RECIPE_*__` markers around the run for the driver to parse.
 */
export declare function buildServerRecipeScript(options: ServerRecipeOptions): string[];
