import type { JournalEntry, EntryType, ImportanceResult, EntryRevision, AnchorStatus, Anchor, ToolHandlerConfig } from '../../../types/index.js'; import type { CreateEntryInput } from '../../core/interfaces.js'; import type { NativeConnectionManager } from '../native-connection.js'; import type { TagsManager } from '../tags.js'; import { type SortBy } from './search/index.js'; export { levenshteinDistance, buildVocabulary, findFuzzyMatches, expandFuzzyQuery } from './fuzzy-matcher.js'; export declare class EntriesManager { private sharedContext; constructor(ctx: NativeConnectionManager, tagsMgr: TagsManager, config?: ToolHandlerConfig); createEntry(input: CreateEntryInput): JournalEntry; getEntryById(id: number, workspaceId?: string): JournalEntry | null; getEntriesByIds(ids: number[]): Map; getEntriesByIdsWithImportance(ids: number[]): Map; getEntryByIdIncludeDeleted(id: number, workspaceId?: string): JournalEntry | null; getActiveEntryCount(workspaceId?: string): number; updateEntry(id: number, input: { content?: string; entryType?: EntryType; tags?: string[]; isPersonal?: boolean; significanceType?: string | null; autoContext?: string | null; projectNumber?: number | null; projectOwner?: string | null; issueNumber?: number | null; issueUrl?: string | null; prNumber?: number | null; prUrl?: string | null; prStatus?: string | null; workflowRunId?: number | null; workflowName?: string | null; workflowStatus?: string | null; expectedVersion?: number; workspaceId?: string; trustScore?: number; impactScore?: number; validationStatus?: 'passed' | 'failed' | 'none'; targetWorkspaceId?: string; }): JournalEntry | null; deleteEntry(id: number, permanent?: boolean, workspaceId?: string): boolean; createEntries(inputs: CreateEntryInput[]): { created: JournalEntry[]; errors: { index: number; error: Error; }[]; }; updateEntries(updates: { id: number; content?: string; entryType?: EntryType; tags?: string[]; isPersonal?: boolean; significanceType?: string | null; autoContext?: string | null; projectNumber?: number | null; projectOwner?: string | null; issueNumber?: number | null; issueUrl?: string | null; prNumber?: number | null; prUrl?: string | null; prStatus?: string | null; workflowRunId?: number | null; workflowName?: string | null; workflowStatus?: string | null; expectedVersion?: number; workspaceId?: string; trustScore?: number; impactScore?: number; validationStatus?: 'passed' | 'failed' | 'none'; }[]): { updated: JournalEntry[]; notFound: number[]; errors: { id: number; error: Error; }[]; }; deleteEntries(ids: number[], permanent?: boolean, workspaceId?: string): { deleted: number[]; notFound: number[]; errors: { id: number; error: Error; }[]; }; getRecentEntries(limit?: number, isPersonal?: boolean, sortBy?: SortBy, cursor?: string, includeArchived?: boolean, workspaceId?: string, projectNumber?: number, offset?: number): { entries: JournalEntry[]; nextCursor?: string; }; getEntriesPage(offset: number, limit: number, order?: 'asc' | 'desc'): { entries: JournalEntry[]; nextCursor?: string; }; searchEntries(queryStr: string, options?: { limit?: number; isPersonal?: boolean; projectNumber?: number; issueNumber?: number; prNumber?: number; prStatus?: string; workflowRunId?: number; sortBy?: SortBy; cursor?: string; includeArchived?: boolean; includeHighlights?: boolean; fuzzy_match?: boolean; auto_correct?: boolean; workspaceId?: string; offset?: number; }): { entries: JournalEntry[]; nextCursor?: string; degraded?: boolean; highlights?: { id: number; snippet: string; }[]; suggestions?: string[]; correctedQuery?: string; }; getSearchFacets(queryStr: string, options?: { isPersonal?: boolean; projectNumber?: number; issueNumber?: number; prNumber?: number; prStatus?: string; workflowRunId?: number; tags?: string[]; entryType?: EntryType; startDate?: string; endDate?: string; includeArchived?: boolean; workspaceId?: string; }): { tags: { name: string; count: number; }[]; entryTypes: { name: string; count: number; }[]; }; searchByDateRange(startDate: string, endDate: string, options?: { entryType?: EntryType; tags?: string[]; isPersonal?: boolean; projectNumber?: number; issueNumber?: number; prNumber?: number; workflowRunId?: number; limit?: number; sortBy?: SortBy; cursor?: string; includeArchived?: boolean; workspaceId?: string; }): { entries: JournalEntry[]; nextCursor?: string; degraded?: boolean; }; calculateImportance(entryId: number): ImportanceResult; getStatistics(timeframe?: 'day' | 'week' | 'month' | 'year', startDate?: string, endDate?: string, projectBreakdown?: boolean, workspaceId?: string): Record; getEntryHistory(id: number): EntryRevision[]; restoreEntry(id: number, workspaceId?: string): boolean; getDeletedEntries(options?: { limit?: number; offset?: number; workspaceId?: string; }): { entries: JournalEntry[]; count: number; }; updateAnchorStatus(id: number, status: AnchorStatus): void; getAnchorsByEntryId(entryId: number): Anchor[]; getEntriesByProject(projectNumber: number, limit?: number, workspaceId?: string): JournalEntry[]; getEntriesByIssue(issueNumber: number, limit?: number, workspaceId?: string): JournalEntry[]; getEntriesByPR(prNumber: number, limit?: number, workspaceId?: string): JournalEntry[]; getEntriesByWorkflowRun(workflowRunId: number, limit?: number, workspaceId?: string): JournalEntry[]; getEntriesBySession(sessionId: string, limit?: number, workspaceId?: string): JournalEntry[]; } //# sourceMappingURL=index.d.ts.map