import { type OpenClawConfig, type WizardPrompter } from "openclaw/plugin-sdk/setup"; import type { ChannelSetupAdapter } from "openclaw/plugin-sdk/setup"; export declare const DINGTALK_CREDENTIAL_HELP_LINES: string[]; export declare const DINGTALK_ALLOWFROM_HELP_LINES: string[]; /** * 解析钉钉 allowFrom 用户 ID * 钉钉用户 ID 一般是字母数字组合 */ export declare function parseDingTalkAllowFromId(raw: string): string | null; /** * 钉钉 allowFrom 条目解析 * 钉钉没有 API 来通过用户名查找用户 ID,所以直接使用 parseId 结果 */ export declare function resolveDingTalkAllowFromEntries(params: { entries: string[]; }): Promise<{ input: string; resolved: boolean; id: string | null; }[]>; /** * 交互式 allowFrom 提示 */ export declare function promptDingTalkAllowFromForAccount(params: { cfg: OpenClawConfig; prompter: WizardPrompter; accountId?: string; }): Promise; /** * 检查钉钉账号的凭据状态 */ export declare function inspectDingTalkSetupAccount(params: { cfg: OpenClawConfig; accountId: string; }): { configured: boolean; clientId: string; clientSecret: string; tokenSource: "config" | "none"; hasClientId: boolean; hasClientSecret: boolean; }; /** * 钉钉 ChannelSetupAdapter * * 钉钉使用 clientId + clientSecret 作为凭据,与 Discord/Telegram 的单 token 不同, * 所以不使用 createEnvPatchedAccountSetupAdapter,而是手写适配器来处理两个凭据字段。 */ export declare const dingtalkSetupAdapter: ChannelSetupAdapter; //# sourceMappingURL=setup-core.d.ts.map