/** * Detail queries for individual request and trace records. * * Extracted from DashboardStore to reduce file length. */ import type { Knex } from 'knex'; /** * Query logs within a time window around a given timestamp. * Used as a fallback when no precise request_id correlation exists. */ export declare function queryLogsByTimeWindow(db: Knex, createdAt: string, duration: number): Promise[]>; /** * Fetch a single trace with full span data and correlated logs. */ export declare function fetchTraceDetail(db: Knex, id: number): Promise | null>; /** * Fetch a single request with associated queries, events, trace, and logs. */ export declare function fetchRequestDetail(db: Knex, id: number): Promise | null>;