/** * Group name store — simple mapping of groupId → display name. * The app registers group names via RPC so push notifications * can show friendly titles instead of raw IDs. */ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; export declare function loadGroupName(api: OpenClawPluginApi, groupId: string): string | undefined; /** * Extract the local group ID from a gateway session key. Returns null for * non-group-chat sessions. Strips the `:v{N}` rotation suffix that gets * appended once a group chat hits the gateway history cap; without this, * `loadGroupName` would miss for rotated groups (the app stores names * under the bare local ID). * * Mirrors `parseGroupChatId` in the app (src/lib/group-chat-store.ts). */ export declare function parseGroupChatId(sessionKey: string): string | null; export declare function registerGroupName(api: OpenClawPluginApi, groupId: string, name: string): void; export declare function removeGroupName(api: OpenClawPluginApi, groupId: string): void; export declare function registerGroupRpc(api: OpenClawPluginApi): void;