import { N as ChannelSetupInput } from "./types.core-CuC3Nb15.js"; import { i as OpenClawConfig } from "./types.openclaw-CpnoYlBx.js"; import { H as ChannelSetupAdapter } from "./types.adapters-BFws9krA.js"; import { ZodType } from "zod"; //#region src/channels/plugins/setup-helpers.d.ts declare function applyAccountNameToChannelSection(params: { cfg: OpenClawConfig; channelKey: string; accountId: string; name?: string; alwaysUseAccounts?: boolean; }): OpenClawConfig; /** Moves a root-level channel name into `accounts.default` before adding named accounts. */ declare function migrateBaseNameToDefaultAccount(params: { cfg: OpenClawConfig; channelKey: string; alwaysUseAccounts?: boolean; }): OpenClawConfig; /** Applies setup-time account naming and optional root-name migration in one step. */ declare function prepareScopedSetupConfig(params: { cfg: OpenClawConfig; channelKey: string; accountId: string; name?: string; alwaysUseAccounts?: boolean; migrateBaseName?: boolean; }): OpenClawConfig; /** Applies a setup patch using account-scoped config semantics. */ declare function applySetupAccountConfigPatch(params: { cfg: OpenClawConfig; channelKey: string; accountId: string; patch: Record; }): OpenClawConfig; /** Creates a setup adapter that turns validated setup input into an account config patch. */ declare function createPatchedAccountSetupAdapter(params: { channelKey: string; alwaysUseAccounts?: boolean; ensureChannelEnabled?: boolean; ensureAccountEnabled?: boolean; validateInput?: ChannelSetupAdapter["validateInput"]; buildPatch: (input: ChannelSetupInput) => Record; }): ChannelSetupAdapter; /** Creates a Zod-backed setup input validator with an optional typed semantic check. */ declare function createZodSetupInputValidator(params: { schema: ZodType; validate?: (params: { cfg: OpenClawConfig; accountId: string; input: T; }) => string | null; }): NonNullable; type SetupInputPresenceRequirement = { someOf: string[]; message: string; }; declare function createSetupInputPresenceValidator(params: { defaultAccountOnlyEnvError?: string; whenNotUseEnv?: SetupInputPresenceRequirement[]; validate?: (params: { cfg: OpenClawConfig; accountId: string; input: ChannelSetupInput; }) => string | null; }): NonNullable; /** Creates a setup adapter that supports env-backed default account auth and patched credentials. */ declare function createEnvPatchedAccountSetupAdapter(params: { channelKey: string; alwaysUseAccounts?: boolean; ensureChannelEnabled?: boolean; ensureAccountEnabled?: boolean; defaultAccountOnlyEnvError: string; missingCredentialError: string; hasCredentials: (input: ChannelSetupInput) => boolean; validateInput?: ChannelSetupAdapter["validateInput"]; buildPatch: (input: ChannelSetupInput) => Record; }): ChannelSetupAdapter; /** Patches channel config at root for default accounts or under `accounts.` for named accounts. */ declare function patchScopedAccountConfig(params: { cfg: OpenClawConfig; channelKey: string; accountId: string; patch: Record; accountPatch?: Record; ensureChannelEnabled?: boolean; ensureAccountEnabled?: boolean; scopeDefaultToAccounts?: boolean; }): OpenClawConfig; /** * Promotes legacy single-account channel fields into the account map for multi-account setup. */ declare function moveSingleAccountChannelSectionToDefaultAccount(params: { cfg: OpenClawConfig; channelKey: string; }): OpenClawConfig; //#endregion export { createSetupInputPresenceValidator as a, moveSingleAccountChannelSectionToDefaultAccount as c, createPatchedAccountSetupAdapter as i, patchScopedAccountConfig as l, applySetupAccountConfigPatch as n, createZodSetupInputValidator as o, createEnvPatchedAccountSetupAdapter as r, migrateBaseNameToDefaultAccount as s, applyAccountNameToChannelSection as t, prepareScopedSetupConfig as u };