import type { User, AuthParams, LoginSession } from "@authhero/adapter-interfaces";
import type { EnrichedClient } from "../helpers/client";
export interface GrantFlowResult {
    user?: User;
    client: EnrichedClient;
    refresh_token?: string;
    loginSession?: LoginSession;
    session_id?: string;
    login_id?: string;
    authParams: AuthParams;
    organization?: {
        id: string;
        name: string;
    };
    impersonatingUser?: User;
    auth_time?: number;
    /** The connection name used for authentication (e.g., "email", "google-oauth2") */
    authConnection?: string;
}
export interface GrantFlowUserResult extends GrantFlowResult {
    user: User;
}
