/**
 * Authentication Session Gate Module
 *
 * CONTROL PLANE HARDENING
 *
 * PURPOSE: Enforce authenticated session requirement for ALL operational commands.
 *          CLI MUST require valid authentication before invoking remote services.
 *
 * CRITICAL REQUIREMENTS:
 * - CLI requires authenticated session
 * - No anonymous operations allowed
 * - Clear error messaging for auth failures
 *
 * FORBIDDEN:
 * - Fallback to anonymous access
 * - Silent auth bypass
 * - Local execution fallback
 */
/**
 * Exit code for authentication required.
 */
export declare const AUTH_REQUIRED_EXIT_CODE: 130;
export declare class AuthSessionRequiredError extends Error {
    constructor();
}
export interface AuthSessionGateResult {
    authenticated: boolean;
    method?: 'platform';
    account?: string;
    exitCode?: number;
    message?: string;
}
/**
 * Check if user has valid authentication.
 * Checks platform credentials (API key, internal key, or stored credentials).
 */
export declare function checkAuthSessionGate(): Promise<AuthSessionGateResult>;
/**
 * Enforce the authentication session gate.
 * Exits the process if no valid authentication is found.
 */
export declare function enforceAuthSessionGate(): Promise<void>;
/**
 * Check if a command requires authentication.
 */
export declare function requiresAuthentication(command: string): boolean;
//# sourceMappingURL=auth-session-gate.d.ts.map