/**
 * @spfn/auth - API Response Types
 *
 * Auth-specific types for API endpoints
 * For standard ApiResponse type, import from '@spfn/core/types/api-response'
 */
/**
 * Session types
 */
interface SessionPayload {
    userId: string;
    role?: string;
}
/**
 * RBAC types
 */
interface Permission {
    resource: string;
    action: string;
}
/**
 * API Response Types for specific endpoints
 */
interface CheckAccountExistsData {
    exists: boolean;
    identifier: string;
    identifierType: 'email' | 'phone';
}
interface LoginData {
    token: string;
    user: {
        id: string;
        email?: string;
        phone?: string;
        role: string;
        emailVerifiedAt?: string;
        phoneVerifiedAt?: string;
    };
    passwordChangeRequired: boolean;
}
interface ChangePasswordData {
    success: boolean;
}

export type { ChangePasswordData, CheckAccountExistsData, LoginData, Permission, SessionPayload };
