import type { Auth } from './auth';

export type AppConstants = {
    content: {
        brand: {
            name: string;
            demo_badge: string;
            logo_alt: string;
        };
        page_titles: Record<string, string>;
        headings: Record<string, string>;
        subheadings: Record<string, string>;
        button_titles: Record<string, string>;
        labels: Record<string, string>;
        status: Record<string, string>;
        recommendation_tabs: Record<string, string>;
        trend: Record<string, string>;
    };
    feature_flags: {
        enableGrowthScore: boolean;
        enableClientAnalysis: boolean;
        showAIAdvisor: boolean;
        showFinancialProjection: boolean;
    };
    rules: {
        score_thresholds: {
            improving: number;
            declining: number;
        };
        grading_rules: Record<string, number>;
        calculation_settings: {
            revenue_weight: number;
            net_income_weight: number;
            minimum_benchmark_growth: number;
            maximum_benchmark_growth: number;
            minimum_advice_history_years: number;
        };
        recommendation_rules: {
            critical_actions_min: number;
            critical_actions_max: number;
            focus_actions_min: number;
            focus_actions_max: number;
            good_to_have_actions_min: number;
            good_to_have_actions_max: number;
            projection_months: number[];
        };
    };
};

export type SharedPageProps = {
    constants: AppConstants;
    auth: Auth;
};
