import { type ProductReference } from '@xopcai/gateway-contract'; import type { CalendarService } from '../../calendar/index.js'; import type { NotesService } from '../../notes/service.js'; import type { ProjectService } from '../../projects/project-service.js'; import { type CapabilityContext } from './dispatcher.js'; export declare const PRODUCT_SEARCH_KINDS: readonly ["session", "project", "task", "note", "calendar_event"]; export type ProductSearchKind = typeof PRODUCT_SEARCH_KINDS[number]; type SearchReference = ProductReference & { kind: ProductSearchKind; }; export declare function createProductSearch(getNotes?: () => NotesService | undefined, projects?: ProjectService, getCalendar?: () => CalendarService | undefined): (context: CapabilityContext, input: { query: string; kinds: readonly ProductSearchKind[]; limit: number; projectId?: string; }, sessions?: { canRead: (id: string) => boolean; canReadEntry?: (id: string, entryId: string, text: string) => boolean; }) => Promise<{ hits: { reference: SearchReference; payload?: object; }[]; truncated: boolean; }>; export {};