/** * `/dashboard sessions` sub-handler. * * The command-level admin gate has already passed. This handler fetches the * global sessions list, builds the Feishu list card, and DMs the invoking * admin. Per-session actions are handled by card callbacks from the detail * view. */ import type { LarkMessage } from '../../types.js'; import { type Locale } from '../../i18n/index.js'; import type { DaemonClient } from '../../dashboard/daemon-internal-client.js'; import type { CommandHandlerDeps } from '../command-handler.js'; /** Optional injection seam for tests. */ export interface DashboardSessionsCommandDeps { createClient?: (larkAppId: string) => DaemonClient; sendUserMessage?: (larkAppId: string, openId: string, content: string, msgType?: string) => Promise; locale?: Locale; /** Override `Date.now()` so tests are deterministic. */ nowMs?: () => number; } export declare function handleDashboardSessions(_message: LarkMessage, _args: string, rootId: string, _chatId: string, deps: CommandHandlerDeps, larkAppId: string | undefined, adminOpenId: string, testDeps?: DashboardSessionsCommandDeps): Promise; //# sourceMappingURL=sessions.d.ts.map