export interface BuildVariant {
    platform: 'ios';
    id: string;
    xcode_version: string;
    /** Still sent by the API for compatibility (null from current builders); not shown. */
    macos_version?: string | null;
    /** "mac": a Mac runner; "fast": the Fast builder (picked first for the Xcode versions it ships). */
    backend?: 'mac' | 'fast';
    runners: number;
    online: number;
    default: boolean;
}
export interface BuildVariantsResponse {
    default_xcode_major: string | null;
    variants: BuildVariant[];
}
export interface BuildVariantsOptions {
    apikey?: string;
    apiHost?: string;
    platform?: string;
    json?: boolean;
}
/** Sentinel for "no pin": the build runs on any machine. */
export declare const ANY_XCODE_VERSION = "";
export declare function fetchBuildVariants(apiHost: string, apikey: string, platform?: string): Promise<BuildVariantsResponse>;
export declare function formatBuildVariant(variant: BuildVariant): string;
/** Distinct Xcode versions, newest first, keeping the builder's order. */
export declare function selectableXcodeVersions(variants: BuildVariant[]): Array<{
    xcodeVersion: string;
    variants: BuildVariant[];
}>;
/**
 * Asks which Xcode to build with. Returns the chosen version, ANY_XCODE_VERSION for no pin,
 * or undefined when there is nothing to choose from (or the list can't be read): the build
 * then keeps its default behaviour.
 */
export declare function promptXcodeVersion(apiHost: string, apikey: string): Promise<string | undefined>;
/** `capgo build variants`: print the variants builds can be pinned to. */
export declare function listBuildVariantsCommand(options: BuildVariantsOptions): Promise<void>;
