/**
 * Environment Persistence
 *
 * Persists environment variables across sessions via env files.
 * Supports setup hooks that modify env and captures changes for replay.
 *
 * Format: standard shell-compatible `export VAR=value` lines.
 */
export declare class EnvPersistence {
    private envFilePath;
    private sessionEnv;
    private sessionId;
    constructor(sessionId?: string);
    /**
     * Get the path to the env persistence file
     */
    getEnvFilePath(): string;
    /**
     * Get the session ID
     */
    getSessionId(): string;
    /**
     * Set an environment variable and persist it
     */
    setVar(name: string, value: string): void;
    /**
     * Remove an environment variable
     */
    unsetVar(name: string): void;
    /**
     * Load all persisted environment variables from the env file
     */
    loadEnv(): Record<string, string>;
    /**
     * Apply all persisted env vars to process.env
     */
    applyToProcess(): void;
    /**
     * Parse an env file with `export VAR=value` format
     */
    parseEnvFile(content: string): Record<string, string>;
    /**
     * Serialize env vars to file content
     */
    serializeEnv(env: Record<string, string>): string;
    /**
     * Capture environment changes between before and after snapshots
     */
    captureEnvChanges(beforeEnv: Record<string, string>, afterEnv: Record<string, string>): Record<string, string>;
    /**
     * Clean up the env file
     */
    cleanup(): void;
    /**
     * Write current env state to file
     */
    private flush;
}
