/** * Source registry and factory * * Manages all available input sources and provides methods to: * - List available sources * - Get source by name * - Auto-detect source from identifier * - Fetch content from any source */ import type { InputSource, SourceInfo, SourceOptions, SourceResult } from './types.js'; /** * Get a source by name */ export declare function getSource(name: string): InputSource | null; /** * Get all registered sources */ export declare function getAllSources(): InputSource[]; /** * Get source info for all sources */ export declare function getSourcesInfo(): Promise; /** * Auto-detect the appropriate source from an identifier */ export declare function detectSource(identifier: string): InputSource | null; /** * Fetch content from any source * * @param sourceOrIdentifier - Source name or auto-detectable identifier * @param identifierOrOptions - Identifier (if source given) or options * @param options - Additional options */ export declare function fetchFromSource(sourceOrIdentifier: string, identifierOrOptions?: string | SourceOptions, options?: SourceOptions): Promise; /** * Get help text for a specific source */ export declare function getSourceHelp(name: string): string | null; /** * Test if a source's credentials are valid */ export declare function testSource(name: string): Promise<{ success: boolean; message: string; }>; export type { InputSource, SourceInfo, SourceOptions, SourceResult } from './types.js'; //# sourceMappingURL=index.d.ts.map