import type { GetProjectContextResult } from "./types/context.js"; import type { GetKnowledgeResult } from "./types/knowledge.js"; import type { CanonicalGetMemoryResult, GetMemoryOptions, SessionEventInput } from "./types/memory.js"; import type { BenchmarkReportMeta, BenchmarkSuiteReport } from "./types/benchmark.js"; export declare class DevFlowApiClient { private baseUrl; private projectRoot; private apiKey; constructor(opts: { baseUrl: string; projectRoot: string; apiKey?: string; }); private request; ping(): Promise; buildContext(query: string, mode?: "fast" | "deep", maxTokens?: number): Promise<{ files: unknown[]; confidence: number; tokenCount: number; }>; buildTaskContext(query: string, rootPath: string, options?: { mode?: "fast" | "deep"; maxTokens?: number; }): Promise; getIndexStatus(): Promise<{ totalFiles: number; totalSymbols: number; lastIndexTime: number; indexing: boolean; }>; triggerIndex(): Promise<{ totalFiles: number; totalSymbols: number; lastIndexTime: number; indexing: boolean; }>; searchSymbol(symbol: string): Promise; getGraph(target?: string, depth?: number): Promise<{ nodes: unknown[]; edges: unknown[]; }>; getMemory(source?: string): Promise; queryMemory(options?: GetMemoryOptions): Promise; setMemory(layer: string, key: string, value: unknown): Promise; reviewCandidates(): Promise; approveMemory(id: string): Promise<{ approved: boolean; }>; rejectMemory(id: string): Promise<{ rejected: boolean; }>; listWorkflows(): Promise; runWorkflow(type: string, input?: Record): Promise; getWorkflowRuns(limit?: number, offset?: number): Promise; getWorkflowRun(runId: string): Promise; getNextStep(runId: string): Promise; searchKnowledge(query: string, scope?: string): Promise[]>; queryKnowledge(query: string, options?: { scope?: string; budgetTokens?: number; }): Promise; syncDocs(pluginName?: string): Promise[]>; getKnowledgeSources(): Promise[]>; listPlugins(search?: string): Promise; installPlugin(name: string): Promise; uninstallPlugin(name: string): Promise; listRuns(limit?: number, offset?: number, source?: string): Promise; getTimeline(from?: string, to?: string): Promise; recordEvent(event: Record): Promise<{ acknowledged: boolean; eventId: string; }>; recordSessionEvent(event: SessionEventInput): Promise<{ acknowledged: boolean; }>; recordTelemetryEvent(event: { toolName: string; args: Record; durationMs: number; success: boolean; error?: string; pluginName?: string; metadata?: Record; }): Promise<{ success: boolean; eventId: string; }>; recordToolMetric(metric: { toolName: string; latencyMs: number; status: string; resultCount?: number; sessionId?: string; query?: string; }): Promise<{ ok: boolean; }>; recordAccuracyQuery(params: { id: string; sessionId: string; engine: string; query: string; topKResults: unknown; selectedIds?: string[]; }): Promise<{ id: string; }>; submitAccuracyFeedback(id: string, feedback: { relevance: "hit" | "partial" | "miss"; note?: string; }): Promise<{ ok: boolean; }>; getAccuracyStats(engine?: string, since?: number): Promise<{ totalQueries: number; annotatedQueries: number; hitRate: number | null; }>; listBenchmarkReports(limit?: number): Promise; getLatestBenchmarkReport(suite?: string): Promise; getBenchmarkReport(runId: string): Promise; } //# sourceMappingURL=api-client.d.ts.map