import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import type { ToolProps } from './types.ts'; /** * Search for documentation based on the provided parameters. * * This tool fetches a search index from the Powertools for AWS documentation, * hydrates it into a Lunr index, and performs a search based on the provided query. * * The search index is expected to be in a specific format, and the results * are filtered based on a confidence threshold to ensure relevance. This threshold * can be configured via the `SEARCH_CONFIDENCE_THRESHOLD` environment variable. * * This tool is designed to work with the Powertools for AWS documentation * for various runtimes, including Python and TypeScript, and supports versioning. * * Search indexes are fetched from a remote source and cached locally * using the {@link fetchWithCache | `fetchWithCache`} utility to improve performance and reduce network calls. * * @param props - options for searching documentation * @param props.search - the search query to use * @param props.runtime - the runtime to search in (e.g., 'python', 'typescript') * @param props.version - the version of the runtime to search in (e.g., 'latest', '1.0.0') */ declare const tool: (props: ToolProps) => Promise; export { tool }; //# sourceMappingURL=tool.d.ts.map