/** * Helius Documentation Fetcher * * Fetches official Helius documentation from GitHub for accurate, up-to-date information. * Uses llms.txt files which are AI-optimized summaries of the documentation. */ export declare const DOCS_INDEX: Record; /** * Fetch a specific documentation file */ export declare function fetchDoc(docKey: string): Promise; /** * Fetch multiple documentation files */ export declare function fetchDocs(docKeys: string[]): Promise>; /** * Get the list of available documentation topics */ export declare function getAvailableDocTopics(): string[]; /** * Get documentation index with descriptions */ export declare function getDocsIndex(): Array<{ key: string; description: string; }>; /** * Extract sections from markdown content that match keyword(s). * * Matches headers whose text contains the keyword (case-insensitive), * collecting all content until the next header at same/higher level. * * When `keywords` is an array, tries each keyword in order and returns the * first non-null match (handles header drift across doc versions). * * `includeLooseMatches` (default `true`): Also include non-header lines * containing the keyword outside matched sections. Set `false` for clean * section-only extraction (used by plan tools to avoid false positives). * * Returns `null` if nothing matched. */ export declare function extractSections(content: string, keywords: string | string[], opts?: { includeLooseMatches?: boolean; }): string | null; /** * Truncate a doc response to avoid blowing up the context window. * Tries to cut at a section boundary for cleaner output. */ export declare const MAX_DOC_RESPONSE_CHARS = 15000; export declare function truncateDoc(text: string, limit?: number): string; /** * Search docs content for a specific term (searches cached docs only) */ export declare function searchCachedDocs(searchTerm: string): Array<{ docKey: string; matches: string[]; }>; /** * Clear the docs cache (useful for forcing fresh fetches) */ export declare function clearDocsCache(): void; /** * Get cache stats */ export declare function getDocsCacheStats(): { cachedDocs: string[]; totalSize: number; };