import type { MinionConfig } from "./types.js";
export declare function collectConfigEnvVars(cfg?: MinionConfig): Record<string, string>;
export declare function applyConfigEnvVars(cfg: MinionConfig, env?: NodeJS.ProcessEnv): void;
/**
 * Resolve an env var by suffix, checking all known prefixes in priority order.
 * Returns the first non-empty trimmed value, or undefined.
 *
 * @example
 *   resolveEnvVar("GATEWAY_PORT") // checks MINION_GATEWAY_PORT, OPENCLAW_GATEWAY_PORT, etc.
 */
export declare function resolveEnvVar(suffix: string, env?: Record<string, string | undefined>): string | undefined;
/**
 * Resolve an env var as an integer, with fallback.
 */
export declare function resolveEnvInt(suffix: string, fallback: number, env?: Record<string, string | undefined>): number;
/**
 * Resolve an env var as a boolean.
 * Truthy: "1", "true", "yes" (case-insensitive).
 */
export declare function resolveEnvBool(suffix: string, fallback: boolean, env?: Record<string, string | undefined>): boolean;
