import { type UsageKind } from './usage-db.js';
/** Time window for mix recipes under `agents insights mix`. */
export interface AnalyticsWindow {
    days: number;
    sinceIso: string;
}
/** @deprecated Use AnalyticsWindow — kept as a type alias for external callers. */
export type TrendsWindow = AnalyticsWindow;
export interface RecipeSection {
    id: string;
    title: string;
    store: 'sessions' | 'usage';
    rows: Array<Record<string, string | number | null>>;
    empty?: boolean;
}
export declare function analyticsWindow(days: number): AnalyticsWindow;
/** @deprecated Use analyticsWindow. */
export declare const trendsWindow: typeof analyticsWindow;
export declare function recipeHarnessMix(win: AnalyticsWindow): RecipeSection;
export declare function recipeModelMix(win: AnalyticsWindow): RecipeSection;
export declare function recipeToolsPerSession(win: AnalyticsWindow): RecipeSection;
export declare function recipeTokenRatio(win: AnalyticsWindow): RecipeSection;
export declare function recipeSessionVolume(win: AnalyticsWindow): RecipeSection;
export declare function recipeSecretsHot(win: AnalyticsWindow): RecipeSection;
export declare function recipeBrowserActivity(win: AnalyticsWindow): RecipeSection;
export declare function recipeResourceMix(win: AnalyticsWindow): RecipeSection;
export type RecipeId = 'harness-mix' | 'model-mix' | 'tools-per-session' | 'token-ratio' | 'session-volume' | 'secrets-hot' | 'browser-activity' | 'resource-mix';
export declare const RECIPE_IDS: readonly RecipeId[];
export declare function runRecipe(id: RecipeId, win: AnalyticsWindow): RecipeSection;
export declare function listRecipes(): Array<{
    id: RecipeId;
    title: string;
    store: 'sessions' | 'usage';
}>;
export declare function hasSessionsInWindow(win: AnalyticsWindow): boolean;
export declare function usageKindsPresent(win: AnalyticsWindow): UsageKind[];
export declare function usageEventCount(kind: UsageKind, win: AnalyticsWindow): number;
