/** Directory pantry's php-fpm master scans for extra pool configs (`include`). */
export declare const PHP_FPM_POOL_DIR = "/var/lib/pantry/php-fpm/pool.d";
/** Dedicated Linux user (and group) the site's php-fpm pool runs as. */
export declare function siteUser(siteName: string): string;
/**
 * Deterministic per-site php-fpm listen port in `[9100, 9499]`. Stable for a
 * given site name (stateless generation), so redeploys reuse the same port.
 */
export declare function phpFpmPoolPort(siteName: string): number;
/** The `fastcgi_pass` target for an isolated site's dedicated pool. */
export declare function phpFpmPoolListen(siteName: string): string;
export interface PhpFpmPoolOptions {
    /** Site key — names the pool, user, and config file. */
    siteName: string;
    /** Site root (`/var/www/<site>`) — owned by the site user and the open_basedir jail. */
    appBase: string;
    /** Max worker processes for the pool. @default 10 */
    maxChildren?: number;
}
/**
 * Render the php-fpm pool config for an isolated site: a named pool running as
 * the site's dedicated user, listening on its per-site port, jailed to its own
 * directory tree (`open_basedir`) plus `/tmp`.
 */
export declare function buildPhpFpmPoolConf(options: PhpFpmPoolOptions): string;
/**
 * Build the shell commands that set up an isolated site's php-fpm pool: create
 * the dedicated system user/group, give www-data (nginx) group access so it can
 * still read static files, take ownership of the site tree, write the pool conf
 * into pantry's pool include dir, and restart php-fpm so the pool comes up.
 *
 * Idempotent — re-runnable on every deploy.
 */
export declare function buildPhpFpmPoolScript(options: PhpFpmPoolOptions): string[];
