/** * Docs search / fetch helpers for the Bland documentation at docs.bland.ai. * * Surfaces two capabilities to the agent: * - bland_docs_search(query): searches the /llms.txt index (title + summary) * and returns the top N matching entries with their doc URLs. * - bland_docs_fetch(slug_or_url): fetches a single doc page as Markdown. * * The index (/llms.txt) is cached in-process for the TTL below. The full * content dump (/llms-full.txt) is NOT cached — it's ~1.3MB, too big. */ interface IndexEntry { title: string; summary: string; url: string; } /** * Parse the llms.txt index, which has lines like: * - [Title](https://docs.bland.ai/path.md): One-sentence summary. * Everything else (blank lines, section headers) is ignored. */ export declare function parseIndex(text: string): IndexEntry[]; /** * Score an entry against query terms. Higher = better match. * Title hits weight much more than summary hits. */ export declare function scoreEntry(entry: IndexEntry, terms: string[]): number; export declare function searchDocs(query: string, limit?: number): Promise; /** * Fetch a single doc page. Accepts: * - a full URL (must be on docs.bland.ai) * - a relative path like 'api-v1/post/agent-testing-scenarios' or with .md * - a slug like 'agent-testing-scenarios' (we'll try to resolve via index) */ export declare function fetchDoc(slugOrUrl: string): Promise<{ url: string; content: string; }>; export declare function _resetDocsCache(): void; export {}; //# sourceMappingURL=docsSearch.d.ts.map