import { C as ZodEnum, Q as ZodOptional, Y as ZodNumber, Z as ZodObject, bt as ZodUnion, c as ZodBoolean, mt as ZodType, r as ZodArray, ra as $strip, st as ZodString } from "./schemas-CkRCGSfd.js"; import { i as ZodRawShape } from "./compat-Cv0f0P7B.js"; import { t as JsonSchemaObject } from "./json-schema.types-z_ZXZBRr.js"; import { n as ChannelConfigSchema, r as ChannelConfigUiHint } from "./types.config-D1pSqbn8.js"; //#region src/channels/plugins/config-schema.d.ts type ExtendableZodObject = ZodType & { extend: (shape: Record) => ZodType; }; /** Shared allowlist entry shape for channel sender/user ids. */ /** Optional allowlist array used by channel config schema builders. */ declare const AllowFromListSchema: ZodOptional>>; /** Build the common nested DM config block used by channel account schemas. */ declare function buildNestedDmConfigSchema(extraShape?: ZodRawShape): ZodOptional; policy: ZodOptional>; allowFrom: ZodOptional>>; }, $strip>>; /** Add `accounts` catchall and `defaultAccount` fields to a channel account schema. */ declare function buildCatchallMultiAccountChannelSchema(accountSchema: T): T; type BuildChannelConfigSchemaOptions = { uiHints?: Record; }; type BuildJsonChannelConfigSchemaOptions = { cacheKey?: string; uiHints?: Record; runtime?: ChannelConfigSchema["runtime"]; }; /** Build a channel config schema from JSON Schema with runtime validation/default support. */ declare function buildJsonChannelConfigSchema(schema: JsonSchemaObject, options?: BuildJsonChannelConfigSchemaOptions): ChannelConfigSchema; /** Build a channel config schema from Zod, exporting JSON Schema when available. */ declare function buildChannelConfigSchema(schema: ZodType, options?: BuildChannelConfigSchemaOptions): ChannelConfigSchema; /** Return a channel config schema for channels that intentionally accept no config keys. */ declare function emptyChannelConfigSchema(): ChannelConfigSchema; //#endregion export { buildNestedDmConfigSchema as a, buildJsonChannelConfigSchema as i, buildCatchallMultiAccountChannelSchema as n, emptyChannelConfigSchema as o, buildChannelConfigSchema as r, AllowFromListSchema as t };