import React from "react";
import { TeamMemberInfo } from "../api-helpers/types";
import { SupabaseSession, SupabaseTeam, SupabaseUser, SupabaseUserProfile } from "../supabase-client/supabase-types";
import { PricingPlan } from "./pricing-helpers";
export interface AuthContextValue {
    sessionData: {
        type: "authenticated";
        session: SupabaseSession;
        team: SupabaseTeam;
        userProfile: SupabaseUserProfile;
        teamMembers: TeamMemberInfo[];
    } | {
        type: "unauthenticated";
    } | {
        type: "loading";
    };
}
export declare const AuthContext: React.Context<AuthContextValue>;
export declare const AuthProvider: (props: {
    children: React.ReactNode;
}) => React.JSX.Element;
export declare function useIsUserLoading(): boolean;
export declare function useSession(): SupabaseSession | null;
export declare function useUser(): SupabaseUser | null;
export declare function useIsAdminUser(): boolean;
export declare function useIsAuthenticated(): boolean;
export declare function useTeam(): SupabaseTeam | null;
export declare function usePricingPlan(): PricingPlan;
//# sourceMappingURL=auth-provider.d.ts.map