/** * Class representing a Platform with OS, architecture, and variant information */ export declare class Platform { os: string | null; architecture: string | null; variant: string | null | undefined; static EMPTY: Platform; static SUPPORTED_PLATFORMS: Platform[]; /** * Create a Platform instance * @param {string|null} os - Operating system * @param {string|null} architecture - Architecture * @param {string|null} [variant] - Architecture variant * @private */ private constructor(); /** * Get the variant for the given OS and architecture * @param {string} os - Operating system * @param {string} arch - Architecture * @returns {string|null} - Variant or null */ static getVariant(os: string, arch: string): string | null; /** * Check if a variant is required for the given OS and architecture * @param {string} os - Operating system * @param {string} arch - Architecture * @returns {boolean} - True if variant is required */ static isVariantRequired(os: string, arch: string): boolean; /** * Create a platform from a string * @param {string} platform - Platform string in format "os/arch" or "os/arch/variant" * @returns {Platform} - Platform instance * @throws {Error} - If platform string is invalid or not supported */ static fromString(platform: string): Platform; /** * Create a platform from individual components * @param {string|null} os - Operating system * @param {string} arch - Architecture * @param {string|null} variant - Architecture variant * @returns {Platform} - Platform instance * @throws {Error} - If platform is invalid or not supported */ static fromComponents(os: string | null, arch: string, variant: string | null): Platform; /** * Check if a platform is supported * @param {Platform} platform - Platform to check * @returns {boolean} - True if platform is supported */ static isSupported(platform: Platform): boolean; /** * Convert a platform to a string * @returns {string} - String representation of platform */ toString(): string; }