/**
 * CV-Hub Authentication Setup
 *
 * Implements OAuth 2.0 Device Authorization Grant (RFC 8628) for CLI authentication.
 * User runs setup, sees a code, approves in browser, and the CLI receives tokens.
 */
import { CredentialManager, GitPlatform } from '@cv-git/credentials';
export interface CVHubInstanceConfig {
    /** Display name for UI */
    displayName: string;
    /** API base URL */
    apiUrl: string;
    /** Web app URL (for browser links) */
    appUrl: string;
    /** GitPlatform enum value */
    platform: GitPlatform;
    /** Prefix for credential names */
    credentialPrefix: string;
}
export declare const CV_HUB_CONFIG: CVHubInstanceConfig;
export declare const CONTROLFAB_CONFIG: CVHubInstanceConfig;
/**
 * Write flat credentials file for Claude Code hooks.
 * Writes to ~/.config/cv-hub/credentials (and /root/ if running as sudo).
 * Returns the paths that were successfully written.
 */
export declare function writeHookCredentials(apiUrl: string, pat: string, orgOverride?: string): string[];
/**
 * Set up CV-Hub authentication using OAuth Device Flow
 */
export declare function setupCVHub(credentials: CredentialManager, autoBrowser?: boolean, config?: CVHubInstanceConfig): Promise<void>;
/**
 * Test CV-Hub authentication
 */
export declare function testCVHub(credentials: CredentialManager, config?: CVHubInstanceConfig): Promise<boolean>;
/**
 * Set up Control Fabric authentication using OAuth Device Flow
 */
export declare function setupControlfab(credentials: CredentialManager, autoBrowser?: boolean): Promise<void>;
/**
 * Test Control Fabric authentication
 */
export declare function testControlfab(credentials: CredentialManager): Promise<boolean>;
//# sourceMappingURL=cv-hub.d.ts.map