import type { UseSourcesConfig, UseSourcesReturn } from "../types/hooks/useSources.ts"; export type { UseSourcesConfig, UseSourcesReturn, ScrapeType } from "../types/hooks/useSources.ts"; /** * React hook that wraps `ScrapePluginManager` for declarative * media & subtitle scraping inside React / React Native components. * * @example * ```tsx * const { mediaSources, subtitleSources, isLoading, scrape, stopContinuousScraping } = useSources({ * managerConfig: { source: mySource, tmdbApiKeys: [KEY] }, * continuous: true, * type: "both", * }); * * // Later, trigger a scrape with a requester: * scrape({ media: { type: "movie", tmdbId: "550" }, targetLanguageISO: "en" }); * ``` */ export declare function useSources(config: UseSourcesConfig): UseSourcesReturn;