import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { mt as ZodType } from "./schemas-CvPp2BJb.js"; import { P as ChannelSetupInput } from "./types.core-BSyOg0vX.js"; import { H as ChannelSetupAdapter } from "./types.adapters-DatL0h_D.js"; //#region src/channels/plugins/setup-helpers.d.ts declare function applyAccountNameToChannelSection(params: { cfg: KlawConfig; channelKey: string; accountId: string; name?: string; alwaysUseAccounts?: boolean; }): KlawConfig; declare function migrateBaseNameToDefaultAccount(params: { cfg: KlawConfig; channelKey: string; alwaysUseAccounts?: boolean; }): KlawConfig; declare function prepareScopedSetupConfig(params: { cfg: KlawConfig; channelKey: string; accountId: string; name?: string; alwaysUseAccounts?: boolean; migrateBaseName?: boolean; }): KlawConfig; declare function applySetupAccountConfigPatch(params: { cfg: KlawConfig; channelKey: string; accountId: string; patch: Record; }): KlawConfig; declare function createPatchedAccountSetupAdapter(params: { channelKey: string; alwaysUseAccounts?: boolean; ensureChannelEnabled?: boolean; ensureAccountEnabled?: boolean; validateInput?: ChannelSetupAdapter["validateInput"]; buildPatch: (input: ChannelSetupInput) => Record; }): ChannelSetupAdapter; declare function createZodSetupInputValidator(params: { schema: ZodType; validate?: (params: { cfg: KlawConfig; accountId: string; input: T; }) => string | null; }): NonNullable; type SetupInputPresenceRequirement = { someOf: string[]; message: string; }; declare function createSetupInputPresenceValidator(params: { defaultAccountOnlyEnvError?: string; whenNotUseEnv?: SetupInputPresenceRequirement[]; validate?: (params: { cfg: KlawConfig; accountId: string; input: ChannelSetupInput; }) => string | null; }): NonNullable; 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; declare function patchScopedAccountConfig(params: { cfg: KlawConfig; channelKey: string; accountId: string; patch: Record; accountPatch?: Record; ensureChannelEnabled?: boolean; ensureAccountEnabled?: boolean; scopeDefaultToAccounts?: boolean; }): KlawConfig; declare function moveSingleAccountChannelSectionToDefaultAccount(params: { cfg: KlawConfig; channelKey: string; }): KlawConfig; //#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 };