"use client";

export class ChatStorage {
  private static _instance: ChatStorage | null = null;

  static getInstance(): ChatStorage {
    if (!ChatStorage._instance) ChatStorage._instance = new ChatStorage();
    return ChatStorage._instance;
  }

  /** @internal */
  static _resetForTests(): void {
    ChatStorage._instance = null;
  }

  // 本地游客消息数量额度逻辑已停用：
  // 游客 / 非游客的消息数量限制统一由后端接口返回 lockDetail/daily_limit。
}
