import type { SqliteDatabase } from '../db/adapter.js'; import type { EmbeddingProfile, LocalEmbeddingProfile } from './types.js'; export interface EmbeddingRuntimeState { readonly activeProfileId: string | null; readonly generation: number; readonly activatedAt: string | null; } export interface ActiveEmbeddingProfile { readonly profile: EmbeddingProfile; readonly generation: number; readonly activatedAt: string; } export interface ActivateEmbeddingProfileOptions { readonly replace: boolean; readonly now?: string; } export interface EmbeddingProfileActivation { readonly profileId: string; readonly generation: number; readonly activated: boolean; readonly enqueued: number; } export interface CurrentEntryEmbeddingJobInput { readonly entryId: string; readonly revision: number; readonly contentHash: string; readonly now: string; } export interface EntryEmbeddingInput { readonly entryId: string; readonly profileId: string; readonly revision: number; readonly contentHash: string; readonly documentHash: string; readonly vector: Float32Array | readonly number[]; readonly createdAt: string; } export interface StoredEntryEmbedding { readonly entryId: string; readonly profileId: string; readonly revision: number; readonly contentHash: string; readonly documentHash: string; readonly dimensions: number; readonly vector: Float32Array; readonly vectorHash: string; readonly createdAt: string; } export declare function readEmbeddingProfile(database: SqliteDatabase, profileId: string): EmbeddingProfile | undefined; export declare function readEmbeddingRuntimeState(database: SqliteDatabase): EmbeddingRuntimeState; export declare function readActiveEmbeddingProfile(database: SqliteDatabase): ActiveEmbeddingProfile | null; /** Enqueue the current entry revision for the active profile inside its caller-owned transaction. */ export declare function enqueueCurrentEntryEmbeddingInTransaction(database: SqliteDatabase, input: CurrentEntryEmbeddingJobInput): void; /** Enqueue every current entry for an already-installed active profile. */ export declare function enqueueAllCurrentEntryEmbeddingsInTransaction(database: SqliteDatabase, requestedNow?: string, requestedWorkspace?: string): number; export declare function activateEmbeddingProfileInTransaction(database: SqliteDatabase, profile: EmbeddingProfile, options: ActivateEmbeddingProfileOptions): EmbeddingProfileActivation; export declare function activateEmbeddingProfile(database: SqliteDatabase, profile: EmbeddingProfile, options: ActivateEmbeddingProfileOptions): EmbeddingProfileActivation; export declare function activateLocalEmbeddingProfileInTransaction(database: SqliteDatabase, profile: LocalEmbeddingProfile, options: ActivateEmbeddingProfileOptions): EmbeddingProfileActivation; export declare function activateLocalEmbeddingProfile(database: SqliteDatabase, profile: LocalEmbeddingProfile, options: ActivateEmbeddingProfileOptions): EmbeddingProfileActivation; export declare function upsertEntryEmbeddingInTransaction(database: SqliteDatabase, input: EntryEmbeddingInput): void; export declare function upsertEntryEmbedding(database: SqliteDatabase, input: EntryEmbeddingInput): void; export declare function readEntryEmbedding(database: SqliteDatabase, input: { entryId: string; profileId: string; }): StoredEntryEmbedding | undefined; //# sourceMappingURL=store.d.ts.map