/** * Session Manager Helper Functions and Classes * @module @skillsmith/core/session/SessionManager.helpers */ import type { CommandExecutor } from './SessionManager.types.js'; /** * Memory key patterns for session storage */ export declare const MEMORY_KEYS: { readonly CURRENT: "session/current"; readonly SESSION_PREFIX: "session/"; readonly CHECKPOINT_PREFIX: "checkpoint/"; }; /** * Validates a memory key to prevent injection attacks */ export declare function validateMemoryKey(key: string): boolean; /** * Default command executor using child_process.spawn * Uses argument arrays to prevent command injection */ export declare class DefaultCommandExecutor implements CommandExecutor { /** * @deprecated Legacy string-based execution - use spawn instead */ execute(command: string): Promise<{ stdout: string; stderr: string; }>; /** * Secure spawn-based execution with argument array */ spawn(executable: string, args: string[]): Promise<{ stdout: string; stderr: string; }>; /** * Parse legacy string command and execute via spawn */ private executeWithSpawn; } //# sourceMappingURL=SessionManager.helpers.d.ts.map