import { type PapershelfConfig } from '../config.js'; import { type IndexCorpusOptions } from '../indexing/index-corpus.js'; import type { DocumentEmbedder } from '../indexing/index-document.js'; import { type OpenVectorStoreOptions, type VectorStore } from '../storage/libsql-store.js'; import type { CliResult, CommandContext, PapershelfPaths } from '../types.js'; export type IndexCommandDependencies = { resolvePaths(cwd: string): PapershelfPaths; loadConfig(env: Readonly): PapershelfConfig; createEmbedder(config: PapershelfConfig): DocumentEmbedder; openStore(options: OpenVectorStoreOptions): Promise; indexCorpus(options: IndexCorpusOptions): Promise; }; export type IndexCommandOptions = { context: CommandContext; rebuild?: boolean; dependencies?: Partial; }; export declare function runIndexCommand(options: IndexCommandOptions): Promise;