import { z as z$1 } from "zod"; import { ChannelPlugin, OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk"; //#region src/config/schema.d.ts declare const DingtalkConfigSchema: z$1.ZodObject<{ dmPolicy: z$1.ZodDefault>>; groupPolicy: z$1.ZodDefault>>; requireMention: z$1.ZodDefault>; separateSessionByConversation: z$1.ZodDefault>; sharedMemoryAcrossConversations: z$1.ZodDefault>; groupSessionScope: z$1.ZodDefault>>>; accounts: z$1.ZodOptional>; allowFrom: z$1.ZodOptional>>; groupPolicy: z$1.ZodOptional>; groupAllowFrom: z$1.ZodOptional>>; requireMention: z$1.ZodOptional; groups: z$1.ZodOptional; tools: z$1.ZodOptional>; deny: z$1.ZodOptional>; }, z$1.core.$strict>>; enabled: z$1.ZodOptional; allowFrom: z$1.ZodOptional>>; systemPrompt: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; }, z$1.core.$strict>>>>; historyLimit: z$1.ZodOptional; textChunkLimit: z$1.ZodOptional; mediaMaxMb: z$1.ZodOptional; tools: z$1.ZodOptional; media: z$1.ZodOptional; }, z$1.core.$strict>>; typingIndicator: z$1.ZodOptional; resolveSenderNames: z$1.ZodOptional; separateSessionByConversation: z$1.ZodOptional; sharedMemoryAcrossConversations: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; asyncMode: z$1.ZodOptional; ackText: z$1.ZodOptional; endpoint: z$1.ZodOptional; debug: z$1.ZodOptional; enableMediaUpload: z$1.ZodOptional; systemPrompt: z$1.ZodOptional; groupReplyMode: z$1.ZodOptional>; enabled: z$1.ZodOptional; name: z$1.ZodOptional; clientId: z$1.ZodOptional>; clientSecret: z$1.ZodOptional; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strip>]>>; chatbotUserId: z$1.ZodOptional; chatbotCorpId: z$1.ZodOptional; }, z$1.core.$strict>>>>; allowFrom: z$1.ZodOptional>>; groupAllowFrom: z$1.ZodOptional>>; groups: z$1.ZodOptional; tools: z$1.ZodOptional>; deny: z$1.ZodOptional>; }, z$1.core.$strict>>; enabled: z$1.ZodOptional; allowFrom: z$1.ZodOptional>>; systemPrompt: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; }, z$1.core.$strict>>>>; historyLimit: z$1.ZodOptional; textChunkLimit: z$1.ZodOptional; mediaMaxMb: z$1.ZodOptional; tools: z$1.ZodOptional; media: z$1.ZodOptional; }, z$1.core.$strict>>; typingIndicator: z$1.ZodOptional; resolveSenderNames: z$1.ZodOptional; asyncMode: z$1.ZodOptional; ackText: z$1.ZodOptional; endpoint: z$1.ZodOptional; debug: z$1.ZodOptional; enableMediaUpload: z$1.ZodOptional; systemPrompt: z$1.ZodOptional; groupReplyMode: z$1.ZodOptional>; enabled: z$1.ZodOptional; defaultAccount: z$1.ZodOptional; clientId: z$1.ZodOptional>; clientSecret: z$1.ZodOptional; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strip>]>>; }, z$1.core.$strict>; //#endregion //#region src/types/index.d.ts type DingtalkConfig = z$1.infer; type DingtalkDefaultAccountSelectionSource = "explicit-default" | "mapped-default" | "fallback"; type DingtalkAccountSelectionSource = "explicit" | DingtalkDefaultAccountSelectionSource; type ResolvedDingtalkAccount = { accountId: string; selectionSource: DingtalkAccountSelectionSource; enabled: boolean; configured: boolean; name?: string; clientId?: string; clientSecret?: string; /** Merged config (top-level defaults + account-specific overrides) */ config: DingtalkConfig; }; //#endregion //#region src/channel.d.ts declare const dingtalkPlugin: ChannelPlugin; /** * Synchronously initializes `dingtalkPlugin.configSchema` using `createRequire`. * * Static `import ... from "openclaw/plugin-sdk/core"` causes * "Cannot find package 'openclaw'" when the plugin is installed to * `~/.openclaw/extensions/` (Issue #527) because the ESM loader resolves * bare specifiers at parse time before the gateway's jiti alias map is active. * * By deferring the resolve to `register()` time and using `createRequire` * (which searches the gateway's own `node_modules`), we avoid the crash * while keeping the call synchronous as required by the plugin API. */ declare function initDingtalkPluginConfigSchema(): void; //#endregion //#region src/runtime.d.ts declare const setDingtalkRuntime: (next: PluginRuntime) => void, getDingtalkRuntime: () => PluginRuntime; //#endregion //#region src/gateway-methods.d.ts /** * 注册所有 Gateway Methods */ declare function registerGatewayMethods(api: OpenClawPluginApi): void; //#endregion //#region index.d.ts declare function register(api: OpenClawPluginApi): void; //#endregion export { register as default, dingtalkPlugin, initDingtalkPluginConfigSchema, registerGatewayMethods, setDingtalkRuntime };