import { type Request } from 'express';
import { type ClusterConfig } from '../../shared/yt-types';
import { type YTApiUserSetup } from './requestsSetup';
export declare function getXSRFToken(req: Request, config: YTApiUserSetup, actionPrefix?: string): Promise<{
    login: string;
    csrf_token: string;
}>;
export declare function getVersions(req: Request, clusters: Record<string, ClusterConfig>): Promise<({
    id: string;
    version: string | null;
} | {
    id: string;
})[]>;
export declare function getClusterInfo(req: Request, cluster: string): Promise<{
    token: {
        login: string;
        csrf_token: string;
    } | undefined;
    version: any;
    tokenError: {
        message: string;
        code: number | undefined;
        inner_errors: unknown[];
    } | undefined;
    versionError: {
        message: string;
        code: number | undefined;
        inner_errors: unknown[];
    } | undefined;
}>;
