import { ScrapePluginManager } from "../controllers/manager.ts"; import type { ProviderManagerConfig } from "../types/models/Manager.ts"; import type { SourcesError } from "../types/hooks/useSources.ts"; /** * Internal hook that manages the {@link ScrapePluginManager} singleton lifecycle. * * - Creates the manager on mount (async). * - Destroys the manager on unmount so resources are released. * - Safe under React 18 StrictMode (double-mount / double-unmount). */ export declare function useManager(config: ProviderManagerConfig): { readonly manager: ScrapePluginManager | null; readonly isInitializing: boolean; readonly initError: SourcesError | null; };