/**
 * Wire types shared by the AdminBroadcast Durable Object (server) and the
 * useAdminSocket hook (browser). See
 * docs/superpowers/specs/2026-05-28-live-page-refresh-design.md.
 */
export type AdminTopic = "workers" | "directors" | "identities" | "proxies" | "llm_profiles" | "groups" | "users" | "social_accounts" | "scheduled_tasks" | "adhoc_batches" | "task_runs" | "audit_log" | "worker_chat_messages" | "group_chat_messages" | "dispatch_settings";
export interface Envelope<T = unknown> {
    v: 1;
    topic: AdminTopic;
    op: "inserted" | "updated" | "deleted";
    /** For op:"deleted" this is just `{ id }`. */
    row: T;
    /** ms since epoch, stamped by broadcaster.publish. */
    ts: number;
}
/** Inbound messages the browser sends on the open admin WS. */
export type AdminClientOp = {
    op: "subscribe";
    topics: AdminTopic[];
} | {
    op: "unsubscribe";
    topics: AdminTopic[];
} | {
    op: "ping";
};
//# sourceMappingURL=admin-broadcast.d.ts.map