export declare const SAME_SUBJECT_COSINE = 0.85; export declare const ACTIVE_CANDIDATE_FLOOR = 0.4; export interface RuleCandidate { preferenceId: string; category: string; key: string; value: string; confidence: number; observedAt: string; embedding: number[] | null; } export interface ActiveRule { preferenceId: string; category: string; key: string; value: string; confidence: number; observedAt: string; } export declare function formatStandingRulesBlock(rules: ActiveRule[]): string; interface MinimalSession { run: (q: string, p: Record) => Promise<{ records: Array<{ get(k: string): unknown; }>; }>; } export type ActiveRuleSource = "owner" | "no-owner" | "owner-error"; export type InjectionSource = ActiveRuleSource | "fetch-error"; export interface ActiveRuleResolution { rules: ActiveRule[]; ownerUserId: string | null; source: ActiveRuleSource; } export interface StandingRulesInjection { block: string; ownerUserId: string | null; source: InjectionSource; } export declare function resolveOwnerUserId(session: MinimalSession, accountId: string): Promise; export declare function queryActiveRuleCandidates(session: MinimalSession, accountId: string): Promise; export declare function resolveActiveRules(session: MinimalSession, accountId: string): Promise; export declare function activeRuleSet(session: MinimalSession, accountId: string): Promise; export {}; //# sourceMappingURL=index.d.ts.map