/** * Pure data inspection helpers shared between plugin auto-enable predicates, * host-app config sync code, and the agent runtime. * * These live in @elizaos/core so plugin packages can * import them without dragging the app/shared layer into their dep graph — * external plugins published to npm only need @elizaos/core. */ /** Builds the secret-setting key for one account-scoped connector credential. */ export declare function connectorAccountCredentialSettingKey(provider: string, accountId: string, field: string): string; /** Builds the secret-setting key for an inherited connector credential. */ export declare function connectorBaseCredentialSettingKey(provider: string, field: string): string; /** * True when a connector configuration block is present and "configured * enough" for the connector plugin to do real work. The exact criteria are * connector-specific (e.g. bluebubbles needs both serverUrl and password, * imessage just needs cliPath OR dbPath OR enabled:true) but the broad * pattern is: * - block exists, is an object, and isn't `enabled: false` * - has at least one of { botToken, token, apiKey } — the universal case * - OR matches the connector-specific shape (per-case branches below) * * Used by per-plugin `auto-enable.ts` predicates that just want to delegate * "is this connector wired?" to a single source of truth, and by app-side * config-routing code that needs to mirror the same check. */ export declare function isConnectorConfigured(connectorName: string, connectorConfig: unknown): boolean; /** * Google Chat connector detection. The connector authenticates with a service * account, so `projectId` or webhook settings alone are not enough. Credential * material may live at the top level or on any enabled entry of the * `accounts` record (GoogleChatConfigSchema keys accounts by id, not array). */ export declare function isGoogleChatConfigured(value: unknown): boolean; /** * WeChat connector detection. Top-level `apiKey` is caught by the universal * check in `isConnectorConfigured`; this helper handles the multi-account * variant where each account in `config.accounts.*.apiKey` is checked. */ export declare function isWechatConfigured(config: Record | null | undefined): boolean;