/** * @license * Copyright 2026 Alibaba Group Holding Limited * Copyright 2026 Qwen * SPDX-License-Identifier: Apache-2.0 * Adapted to TypeScript from qwen-omni-realtime-agent; modified for Qwen Live Harness. */ import { type MemoryConfig, type MemoryLogger } from './config.js'; export interface WmApplyResult { added: number; updated: number; deleted: number; skipped: number; nAfter: number; malformed: boolean; reasons: string[]; changed: boolean; succeeded: boolean; } export declare function sanitizeEntry(value: unknown, maxChars: number): string | undefined; export declare function applyOperations(entries: readonly string[], operations: unknown, config?: MemoryConfig['wm'], log?: MemoryLogger): { entries: string[]; result: WmApplyResult; }; export declare function renderEntries(entries: readonly string[]): string; export declare function parseEntries(value: unknown): string[];