/** * Centralized Configuration Defaults for Babysitter SDK * * This module serves as the single source of truth for all default configuration * values used throughout the babysitter SDK. Import from here instead of using * scattered magic numbers and strings. */ /** * Log level type for SDK logging configuration */ export type LogLevel = "debug" | "info" | "warn" | "error" | "silent"; /** * Complete configuration interface for the Babysitter SDK */ export interface BabysitterConfig { runsDir: string; maxIterations: number; qualityThreshold: number; timeout: number; logLevel: LogLevel; allowSecretLogs: boolean; hookTimeout: number; nodeTaskTimeout: number; clockStepMs: number; clockStartMs: number; layoutVersion: string; largeResultPreviewLimit: number; } /** * Validation result for configuration checks */ export interface ConfigValidationResult { valid: boolean; errors: string[]; warnings: string[]; } /** * Environment variable names for configuration overrides */ export declare const CONFIG_ENV_VARS: { readonly RUNS_DIR: "BABYSITTER_RUNS_DIR"; readonly RUNS_SCOPE: "BABYSITTER_RUNS_SCOPE"; readonly MAX_ITERATIONS: "BABYSITTER_MAX_ITERATIONS"; readonly QUALITY_THRESHOLD: "BABYSITTER_QUALITY_THRESHOLD"; readonly TIMEOUT: "BABYSITTER_TIMEOUT"; readonly LOG_LEVEL: "BABYSITTER_LOG_LEVEL"; readonly ALLOW_SECRET_LOGS: "BABYSITTER_ALLOW_SECRET_LOGS"; readonly HOOK_TIMEOUT: "BABYSITTER_HOOK_TIMEOUT"; readonly NODE_TASK_TIMEOUT: "BABYSITTER_NODE_TASK_TIMEOUT"; }; /** Default SDK configuration values; env vars and explicit overrides can replace them. */ export declare const DEFAULTS: Readonly; export declare function getConfiguredGlobalStateRoot(): string; /** * Normalizes a session-state directory path. */ export declare function normalizeSessionStateDir(stateDir?: string): string; /** * Returns the global babysitter state directory (~/.a5c/state/). */ export declare function getGlobalStateDir(): string; /** * Returns the global babysitter log directory (~/.a5c/logs/). */ export declare function getGlobalLogDir(): string; export { getConfig, validateConfig, getDefaults, isValidLogLevel } from "./configValidation"; //# sourceMappingURL=defaults.d.ts.map