/** * Dashboard initialization helpers extracted from toolbar_setup. * Handles SQLite store creation, log piping, request piping, and broadcasting. */ import { LogStreamService } from '../log_stream/log_stream_service.js'; import type DashboardController from '../dashboard/dashboard_controller.js'; import type { DashboardStore } from '../dashboard/dashboard_store.js'; import type { DebugStore } from '../debug/debug_store.js'; import type { DevToolbarConfig } from '../debug/types.js'; import type { StatsEngine } from '../engine/stats_engine.js'; import type { ApplicationService } from '@adonisjs/core/types'; export interface DashboardResult { dashboardStore: DashboardStore | null; dashboardController: DashboardController | null; dashboardLogStream: LogStreamService | null; dashboardBroadcastTimer: ReturnType | null; } interface DashboardStoreOptions { tc: DevToolbarConfig; emitter: unknown; app: ApplicationService; debugStore: DebugStore; engine: StatsEngine; pinoHookActive: boolean; transmitChannels: string[]; onResult: (r: DashboardResult) => void; } /** Initialize the full-page dashboard: SQLite store, controller, log piping, broadcasting. */ export declare function initDashboardStore(opts: DashboardStoreOptions): Promise; /** * Forget the installed request pipe. Must be called on shutdown: the handler * slot is nulled there via `setOnRequestComplete(null)`, and without this * reset a later re-init in the same process (test harness, programmatic * restart) would see the flag, decline to reinstall, and leave dashboard * persistence silently dead for the rest of the process's life. */ export declare function resetDashRequestPipe(): void; export {};