import { FetchDoctorConfig, DiagnosticSummary, NetworkRequestLog } from '@fetch-doctor/shared'; export * from '@fetch-doctor/shared'; type DiagnosticListener = (logs: NetworkRequestLog[], summary: DiagnosticSummary) => void; declare class FetchDoctorEngine { private static instance; private originalFetch; private isInitialized; private config; private requestLogs; private activeRequests; private activeScopes; private requestScopes; private listeners; private overlayElement; private shadowRoot; private constructor(); static getInstance(): FetchDoctorEngine; init(config?: FetchDoctorConfig): void; updateConfig(newConfig: FetchDoctorConfig): void; registerScope(name?: string): string; unregisterScope(scopeId: string, cleanlyAbortedSignals?: Set): void; restore(): void; getDiagnostics(): DiagnosticSummary; getLogs(): NetworkRequestLog[]; clear(): void; subscribe(listener: DiagnosticListener): () => void; private patchFetch; private addLog; private notifyListeners; private mountOverlay; private unmountOverlay; private isCollapsed; private renderOverlayContent; } declare function initFetchDoctor(config?: FetchDoctorConfig): void; declare function restoreFetchDoctor(): void; declare function getDiagnostics(): DiagnosticSummary; declare function getNetworkLogs(): NetworkRequestLog[]; declare function clearDiagnostics(): void; declare function subscribeDiagnostics(listener: (logs: NetworkRequestLog[], summary: DiagnosticSummary) => void): () => void; /** * Explicitly allow the diagnostic overlay in production builds. This exposes * request URLs in the DOM; call it only for controlled debugging sessions. */ declare function allowProductionOverlay(): void; declare function registerFetchScope(name?: string): string; declare function unregisterFetchScope(scopeId: string, cleanlyAbortedSignals?: Set): void; export { FetchDoctorEngine, allowProductionOverlay, clearDiagnostics, getDiagnostics, getNetworkLogs, initFetchDoctor, registerFetchScope, restoreFetchDoctor, subscribeDiagnostics, unregisterFetchScope };