import type { MemoryScope } from '../../contracts/memory'; declare const collapseWhitespace: (value: string) => string; export declare const normalizeSpeakerLabel: typeof collapseWhitespace; export declare const normalizeSpeakerAliasKey: (speakerLabel: string) => string; export declare const createSpeakerKey: (platform: string, speakerId: string) => string; /** * 注册表缺行时的兜底标签:日志与提取窗口都不携带原始身份,无法反查昵称, * 只能以键前缀合成;该用户下次直接对话时 reconcile 会升级为真昵称。 */ export declare const createSyntheticSpeakerLabel: (speakerKey: string) => string; /** 调用方未显式给键时按 scope 身份推导默认关联键,应用层注册与仓储落库共用。 */ export declare const resolveScopeSpeakerKeys: (scope: MemoryScope) => string[]; export declare const normalizeSpeakerKeys: (speakerKeys: readonly string[] | null | undefined) => string[]; export declare const resolveSpeakerKeysByLabels: (speakerLabels: readonly string[], speakers: readonly { speakerKey: string; speakerLabel: string; speakerAliases?: string[]; }[]) => string[]; export {};