import { type ToolDefinition } from "@opencode-ai/plugin"; /** * artifact_search tool * * Requires: SQLite artifact-index database * * This tool searches through indexed artifacts (code snippets, documents, etc.) * stored in a SQLite database. Before using, you need to: * * 1. Install the artifact-index: npm install -g artifact-index * 2. Initialize the index: artifact-index init * 3. Index your artifacts: artifact-index add * * If the dependency is not available, this tool returns an error message * explaining how to set it up. */ export interface ArtifactSearchArgs { query: string; limit?: number; type?: "code" | "doc" | "all"; } export declare function searchArtifacts(args: ArtifactSearchArgs): Promise; export declare const artifactSearchTool: ToolDefinition;