import { R as RemoteCommands } from '../../../types-qwD753FR.js'; import './types.js'; import '../../utils/resilience.js'; /** * HTTP-based RemoteCommands for code search against the Morph landing API. * * Translates grep/read/listDir into POST requests to the code-search endpoints, * so the WarpGrep agent can search GitHub repositories that have been indexed * by the Morph code storage service. */ declare function toRepoRelative(path: string): string; interface CodeStorageHttpConfig { /** Base URL for the code search API (e.g. "https://api.morphllm.com") */ baseUrl: string; /** Repository ID returned by the get-or-create endpoint */ repoId: string; /** Git branch to search */ branch: string; /** Morph API key, forwarded as a Bearer token (api.morphllm.com requires it) */ apiKey?: string; } declare function createCodeStorageHttpCommands(config: CodeStorageHttpConfig): RemoteCommands; export { type CodeStorageHttpConfig, createCodeStorageHttpCommands, toRepoRelative };