/** * Platform and path utilities * * Consolidates cross-platform system detection and path normalization * for consistent behavior across different operating systems. */ import type { DockerPlatform } from '../tools/shared/schemas'; export interface SystemInfo { isWindows: boolean; isMac: boolean; isLinux: boolean; } /** * Get system information for cross-platform logic */ export declare function getSystemInfo(): SystemInfo; /** * Get OS string for download URLs */ export declare function getDownloadOS(): string; /** * Get architecture string for download URLs */ export declare function getDownloadArch(): string; /** * Map Kubernetes node architecture to Docker platform format */ export declare function mapNodeArchToPlatform(arch: string, os?: string): DockerPlatform | null; /** * Check if a target platform is compatible with a cluster platform. * Returns true if images built for targetPlatform can run on clusterPlatform. * * @param targetPlatform - Platform images are built for (e.g., "linux/amd64") * @param clusterPlatform - Platform cluster nodes support (e.g., "linux/amd64") * @returns true if compatible, false otherwise */ export declare function isPlatformCompatible(targetPlatform: DockerPlatform, clusterPlatform: DockerPlatform): boolean; /** * Using native Node.js path.posix.normalize for consistent forward slash behavior * Normalizes paths to use forward slashes on all platforms for consistency. * * @param inputPath The path to normalize * @returns The normalized path with forward slashes, or the original value if null/undefined */ export declare function normalizePath(inputPath: string): string; export declare function normalizePath(inputPath: string | null | undefined): string | null | undefined; //# sourceMappingURL=platform.d.ts.map