/** * Config RPC module — aight.config.get, aight.config.patch, aight.status */ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; export interface AightConfig { push?: { mode?: "private" | "rich"; relayUrl?: string; relaySecret?: string; }; today?: { enabled?: boolean; }; } /** Returns a sanitized copy of the config with secrets redacted */ export declare function getClientSafeConfig(config: AightConfig): Record; export declare function getPluginConfig(api: OpenClawPluginApi): AightConfig; /** * Read whether the agent_end push hook is allowed conversation access. * OpenClaw 2026.5.x blocks non-bundled plugin hooks from seeing message * payloads unless `plugins.entries.aight-utils.hooks.allowConversationAccess` * is explicitly true. */ export declare function isPushHookEnabled(api: OpenClawPluginApi): Promise; /** * Ensure `allowConversationAccess` is true so the agent_end hook can build * push previews from message content. Idempotent — only writes if unset. */ export declare function ensurePushHookEnabled(api: OpenClawPluginApi): Promise; export declare function registerConfig(api: OpenClawPluginApi): void;