/** * Docker socket validation and auto-detection module. * Supports Docker Engine, Docker Desktop, Colima, OrbStack, Rancher Desktop, * Podman, rootless Docker, Snap Docker, and DOCKER_HOST env var. */ /** * Result of Docker socket validation */ export interface SocketValidationResult { /** The validated Docker socket path (empty string if invalid) */ dockerSocket: string; /** Warning messages encountered during validation */ warnings: string[]; } /** * Parsed result from a DOCKER_HOST value. */ export interface ParsedDockerHost { type: 'unix' | 'tcp' | 'npipe'; /** Socket path for unix/npipe, or full host string for tcp */ value: string; /** Extracted host for tcp connections */ host?: string; /** Extracted port for tcp connections */ port?: number; } /** * Parse a DOCKER_HOST value into a structured result. * Handles: unix://, tcp://, http://, https://, npipe://, raw paths. * Throws on unsupported schemes (e.g. fd://, ssh://). */ export declare function parseDockerHost(value: string): ParsedDockerHost; /** * Auto-detect Docker socket path with broad runtime support (synchronous). * Checks DOCKER_HOST env var, then probes known socket paths. * Exported for use in other modules that need to detect the socket path. */ export declare function autoDetectDockerSocket(): string; /** * Validate Docker socket path and provide warnings if invalid. * Handles Windows named pipes, Unix sockets, TCP connections, and provides user-friendly error messages. * * @param options - Options object containing optional dockerSocket property * @param options.dockerSocket - Explicit Docker socket path (CLI option) * @param quiet - If true, suppress console output (default: false) * @returns Validation result with socket path and any warnings */ export declare function validateDockerSocket(options: { dockerSocket?: string; }, quiet?: boolean): SocketValidationResult; //# sourceMappingURL=socket-validation.d.ts.map