/**
 * IdentityHandler - Manages user identity and attribution
 *
 * Handles user identity management for persona attribution including:
 * - Setting user identity (username and optional email)
 * - Retrieving current identity status
 * - Clearing identity to return to anonymous mode
 * - Providing attribution for new personas
 *
 * Identity state now flows through PersonaManager for DI integration.
 */
import { PersonaManager } from '../persona/PersonaManager.js';
import { InitializationService } from '../services/InitializationService.js';
import { PersonaIndicatorService } from '../services/PersonaIndicatorService.js';
export declare class IdentityHandler {
    private readonly personaManager;
    private readonly initService;
    private readonly indicatorService;
    constructor(personaManager: PersonaManager, initService: InitializationService, indicatorService: PersonaIndicatorService);
    private ensureInitialized;
    private withIndicator;
    /**
     * Set user identity for attribution
     * @param username - Username to set (alphanumeric, hyphens, underscores, dots)
     * @param email - Optional email address
     */
    setUserIdentity(username: string, email?: string): Promise<{
        content: {
            type: "text";
            text: string;
        }[];
    }>;
    /**
     * Get current user identity status
     * Shows username, email (if set), and attribution status
     */
    getUserIdentity(): Promise<{
        content: {
            type: "text";
            text: string;
        }[];
    }>;
    /**
     * Clear user identity and return to anonymous mode
     */
    clearUserIdentity(): Promise<{
        content: {
            type: "text";
            text: string;
        }[];
    }>;
    /**
     * Get current user for attribution purposes
     * Returns username if set, otherwise PersonaManager's anonymous ID
     */
    getCurrentUserForAttribution(): string;
}
//# sourceMappingURL=IdentityHandler.d.ts.map