/** * Pure functions for building shell environment variable exports for Bedrock mode. * * All functions are pure (no side effects, no process.env access). */ import { ModelTriple } from './types.js'; /** * Shell-escapes a string value for use in a POSIX export statement. * Uses single-quote wrapping with embedded-single-quote escaping. * Strategy: wrap in single quotes, replace ' with '\'' (end-quote, escaped-quote, re-open-quote). */ export declare function shellEscape(value: string): string; /** * Renders a list of [key, value] pairs as POSIX export statements. * Values are shell-escaped to prevent injection. * * Special case: CLAUDE_CONFIG_DIR_BEFORE_BEDROCK must be emitted with * double-quote expansion so the shell expands ${CLAUDE_CONFIG_DIR:-} at * eval-time, capturing the current value rather than storing the literal * string. All other values use single-quote escaping. */ export declare function renderExports(pairs: Array<[string, string]>): string; /** * Builds the 8 environment variable pairs for Bedrock enable mode. * Returns pairs in stable, documented order. */ export declare function buildEnableEnv(opts: { models: ModelTriple; configDir: string; region: string; }): Array<[string, string]>; /** * Builds the shell snippet for disabling Bedrock mode. * Conditionally restores CLAUDE_CONFIG_DIR from CLAUDE_CONFIG_DIR_BEFORE_BEDROCK. * Returns an array of shell lines. */ export declare function buildDisableEnv(): string[]; /** * Renders the disable snippet as a single string. */ export declare function renderDisableExports(): string; //# sourceMappingURL=env-builder.d.ts.map