import type { AgentTool } from '@earendil-works/pi-agent-core'; import { type Api, type Model } from '@earendil-works/pi-ai/compat'; import type { SessionStore } from '../../session/store.js'; import type { CaptureScopeContext } from '../../user-model/capture/executor.js'; export interface SessionSearchToolDeps { getSessionStore: () => SessionStore; getPrimaryModel: () => Model; getSummaryModel?: () => Model; getCurrentConversationId?: () => string | undefined; canAccess?: () => boolean; canRecallConversation?: (conversationId: string) => boolean; canRecallEntry?: (conversationId: string, entryId: string, content: string) => boolean; localOnly?: boolean; includePersonalAgent?: boolean; historyScope?: string; getHistoryContext?: () => CaptureScopeContext; getCurrentUserText?: () => string | undefined; } export declare function createSessionSearchTool(deps: SessionSearchToolDeps): AgentTool;