import { X as MemorySearchResult, n as OpenClawConfig } from "../../types.openclaw-DaSAxiuJ.js";
import "../../config-contracts-BktxZzQU.js";
import { DatabaseSync } from "node:sqlite";
//#region extensions/active-memory/trigger-recall.d.ts
declare const MAX_TRIGGER_CONTEXT_CHARS = 1800;
type TriggerRecallMatch = MemorySearchResult & {
  matchScore: number;
};
export declare function isPromotedTrustedMemoryEntry(entry: Pick<MemorySearchResult, "provenance" | "projectKey" | "source">, activeProjectKeys?: readonly string[]): boolean;
export declare function scoreTriggerMatch(message: string, entry: MemorySearchResult): number;
export declare function selectStrongTriggerMatches(message: string, entries: MemorySearchResult[], activeProjectKeys?: readonly string[]): TriggerRecallMatch[];
export declare function buildTriggerRecallContext(matches: TriggerRecallMatch[]): string | undefined;
type TriggerLookupParams = {
  cfg: OpenClawConfig;
  agentId: string;
  query: string;
  activeProjectKeys?: string[];
  signal?: AbortSignal;
  runId?: string;
  authorityFingerprint?: string;
};
export declare function resolveTriggerRecall(params: TriggerLookupParams & {
  message: string;
}): Promise<{
  context?: string;
  hasStrongHit: boolean;
  injectedCount: number;
}>;
export declare function forgetTriggerRecallRun(runId: string | undefined): void;
export declare function resetTriggerRecallRunsForTests(): void;
//#endregion
export { MAX_TRIGGER_CONTEXT_CHARS };