/** * Dev toolbar and dashboard setup helpers extracted from provider. */ import type DebugController from '../controller/debug_controller.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 { LogStreamService } from '../log_stream/log_stream_service.js'; import type { ResolvedServerStatsConfig } from '../types.js'; import type { ApplicationService } from '@adonisjs/core/types'; export { initDashboardStore } from './dashboard_init.js'; export interface ToolbarCoreResult { debugStore: DebugStore; debugController: DebugController; persistPath: string | null; flushTimer: ReturnType | null; debugBroadcastTimer: ReturnType | null; transmitAvailable: boolean; transmitChannels: string[]; dashboardStore: DashboardStore | null; dashboardController: DashboardController | null; dashboardLogStream: LogStreamService | null; dashboardBroadcastTimer: ReturnType | null; emailBridgeRedis: unknown; emitter: unknown; } interface ToolbarCoreOptions { tc: DevToolbarConfig; config: ResolvedServerStatsConfig; app: ApplicationService; resolve: (binding: string) => Promise; getDiagnostics: () => unknown; } /** Core dev toolbar setup: debug store, controllers, broadcasting, dashboard. */ export declare function setupDevToolbarCore(opts: ToolbarCoreOptions): Promise; export interface ProviderFields { debugStore: DebugStore | null; debugController: DebugController | null; persistPath: string | null; flushTimer: ReturnType | null; debugBroadcastTimer: ReturnType | null; transmitAvailable: boolean; transmitChannels: string[]; dashboardStore: DashboardStore | null; dashboardController: DashboardController | null; dashboardLogStream: LogStreamService | null; dashboardBroadcastTimer: ReturnType | null; emailBridgeRedis: unknown; dashboardDepsAvailable: boolean; engine: StatsEngine | null; pinoHookActive: boolean; app: ApplicationService; } /** Apply the toolbar core result back onto the provider instance. */ export declare function applyToolbarResult(result: ToolbarCoreResult, tc: DevToolbarConfig, provider: ProviderFields): void;