/** * Database query runners for overview metrics and widget data. * * These functions execute the actual Knex queries within transactions. * Extracted from DashboardStore to reduce file length. */ import type { Knex } from 'knex'; /** * Query aggregated overview metrics within a transaction. */ export declare function queryOverviewMetrics(trx: Knex.Transaction, cutoff: string, range: string): Promise>; /** * Raw widget data shape returned by queryWidgetData. */ export interface WidgetDataRaw { topEventsRaw: Record[]; emailStatusRaw: Record[]; logLevelsRaw: Record[]; statusRaw: Record | undefined; slowQueriesRaw: Record[]; } /** * Query all widget data in a single transaction. */ export declare function queryWidgetData(db: Knex, cutoff: string): Promise;