import { d as ChannelDirectoryEntryKind, u as ChannelDirectoryEntry } from "./types.core-BJ6XFfsr.js";
import { a as SourceReplyDeliveryMode$1 } from "./types-FITFZgP1.js";
import { a as GroupToolPolicyBySenderConfig, o as GroupToolPolicyConfig } from "./types.tools-tYxTcHXF.js";
import { n as HistoryMediaEntry, t as HistoryEntry } from "./history.types-Bc8mCALh.js";
import { n as normalizeAccountId } from "./account-id-Dh6XMgGH.js";
import { lo as registerContextEngine } from "./types-CFcw8agJ.js";
import { c as MemoryPluginPublicArtifact, l as MemoryPluginPublicArtifactsProvider, s as MemoryPluginCapability } from "./memory-state-BJeI25qO.js";
import { Lt as onDiagnosticEvent, a as DiagnosticEventPayload } from "./diagnostic-events-DysGbru8.js";
import { c as createTypingCallbacks$1, i as createReplyPrefixOptions$1, n as ReplyPrefixOptions$1, o as CreateTypingCallbacksParams$1, r as createReplyPrefixContext$1, s as TypingCallbacks$1, t as ReplyPrefixContextBundle$1 } from "./reply-prefix-BMcwRZPQ.js";
import { a as resolveToolsBySender, i as resolveChannelGroupToolsPolicy, n as resolveChannelGroupPolicy, r as resolveChannelGroupRequireMention, t as ChannelGroupPolicy } from "./group-policy-QmpNd0jX.js";
import { i as resolveControlCommandGate } from "./command-gating-pUtyEXB1.js";
import { a as resolveChannelSourceReplyDeliveryMode$1, i as createChannelReplyPipeline$1, r as ReplyPrefixContext$1, t as ChannelReplyPipeline$1 } from "./reply-pipeline-DtVNDRXU.js";
import { n as createChannelHistoryWindow, t as ChannelHistoryWindow } from "./history-window-BSd8jX-m.js";
import { a as GroupPolicySchema, c as ReplyRuntimeConfigSchemaShape, i as DmPolicySchema, m as requireOpenAllowFrom, n as ContextVisibilityModeSchema, o as MarkdownConfigSchema, p as requireAllowlistAllowFrom, r as DmConfigSchema, s as MentionPatternsPolicySchema, t as BlockStreamingCoalesceSchema } from "./zod-schema.core-BsBGROgp.js";
import { t as ToolPolicySchema } from "./zod-schema.agent-runtime-DWbjdB_w.js";
import { o as optionalStringEnum, s as stringEnum } from "./typebox-WKHUFEwH.js";
import { n as formatAllowFromLowercase, o as mapAllowlistResolutionInputs, r as formatNormalizedAllowFromEntries } from "./allow-from-DAzkuAuT.js";
import { a as buildNestedDmConfigSchema, i as buildJsonChannelConfigSchema, n as buildCatchallMultiAccountChannelSchema, r as buildChannelConfigSchema, t as AllowFromListSchema } from "./config-schema-CIXTfG6L.js";
import { i as createAccountStatusSink } from "./channel-lifecycle.core-CW_7_pvA.js";
import { t as buildAccountScopedDmSecurityPolicy } from "./helpers-C3J3_E02.js";
import { createHybridChannelConfigAdapter, createHybridChannelConfigBase, createScopedAccountConfigAccessors, createScopedChannelConfigAdapter, createScopedChannelConfigBase, createScopedDmSecurityResolver, createTopLevelChannelConfigAdapter, createTopLevelChannelConfigBase, mapAllowFromEntries } from "./channel-config-helpers.js";
import { r as emptyPluginConfigSchema } from "./config-schema-DP_-nciT.js";
import { t as KeyedAsyncQueue } from "./keyed-async-queue-DiOi96se.js";
import { n as delegateCompactionToRuntime, t as buildMemorySystemPromptAddition } from "./delegate-BiVDgp2C.js";
import { c as resolveDmGroupAccessWithLists, i as readStoreAllowFromForDmPolicy, l as resolveEffectiveAllowFromLists, s as resolveDmGroupAccessWithCommandGate, t as DM_GROUP_ACCESS_REASON, u as resolveOpenDmAllowlistAccess } from "./dm-policy-shared-CbXY3hb3.js";
import { t as createRuntimeDirectoryLiveAdapter } from "./runtime-forwarders-rNf2NQl_.js";
import { C as createOpenProviderConfiguredRouteWarningCollector, D as projectConfigAccountIdWarningCollector, E as projectAccountWarningCollector, O as projectConfigWarningCollector, S as createOpenGroupPolicyRestrictSendersWarningCollector, T as projectAccountConfigWarningCollector, _ as createAllowlistProviderGroupPolicyWarningCollector, a as normalizeAllowFromList, b as createAllowlistProviderRouteAllowlistWarningCollector, c as buildOpenGroupPolicyWarning, d as collectOpenGroupPolicyConfiguredRouteWarnings, f as collectOpenGroupPolicyRestrictSendersWarnings, g as composeWarningCollectors, h as composeAccountWarningCollectors, i as createRestrictSendersChannelSecurity, k as projectWarningCollector, l as collectAllowlistProviderGroupPolicyWarnings, m as collectOpenProviderGroupPolicyWarnings, n as coerceNativeSetting, o as buildOpenGroupPolicyConfigureRouteAllowlistWarning, p as collectOpenGroupPolicyRouteAllowlistWarnings, r as createDangerousNameMatchingMutableAllowlistWarningCollector, s as buildOpenGroupPolicyRestrictSendersWarning, t as ChannelMutableAllowlistCandidate, u as collectAllowlistProviderRestrictSendersWarnings, v as createAllowlistProviderOpenWarningCollector, w as createOpenProviderGroupPolicyWarningCollector, x as createConditionalWarningCollector, y as createAllowlistProviderRestrictSendersWarningCollector } from "./channel-policy-DFtuZT18.js";
import { d as resolveSenderScopedGroupPolicy, s as evaluateGroupRouteAccessForPolicy, u as evaluateSenderGroupAccessForPolicy } from "./group-access-BXkM4OBU.js";
import { t as DirectoryConfigParams } from "./directory-types-Cl-tPBAk.js";
import { a as upsertApiKeyProfile, i as buildApiKeyCredential, n as WriteOAuthCredentialsOptions, o as writeOAuthCredentials, r as applyAuthProfileConfig, t as ApiKeyStorageOptions } from "./provider-auth-helpers-nilZqNQB.js";
import { createPluginRuntimeStore } from "./runtime-store.js";
import { r as resolvePreferredOpenClawTmpDir } from "./tmp-openclaw-dir-ubX-9dkk.js";
import { a as buildHistoryContextFromMap, c as buildPendingHistoryContextFromMap, d as evictOldHistoryKeys, f as normalizeHistoryMediaEntries, h as recordPendingHistoryEntryWithMedia, i as buildHistoryContextFromEntries, l as clearHistoryEntries, m as recordPendingHistoryEntryIfEnabled, n as HISTORY_CONTEXT_MARKER, o as buildInboundHistoryFromEntries, p as recordPendingHistoryEntry, r as buildHistoryContext, s as buildInboundHistoryFromMap, t as DEFAULT_GROUP_HISTORY_LIMIT, u as clearHistoryEntriesIfEnabled } from "./reply-history-LQJCuuru.js";
import { a as ReadOnlyInspectedAccount, i as nullChannelDirectorySelf, n as createEmptyChannelDirectoryAdapter, o as inspectReadOnlyChannelAccount, r as emptyChannelDirectoryList, t as createChannelDirectoryAdapter } from "./directory-runtime-BRWU51OH.js";
import { a as listDirectoryEntriesFromSources, c as listDirectoryUserEntriesFromAllowFrom, d as listResolvedDirectoryEntriesFromSources, f as listResolvedDirectoryGroupEntriesFromMapKeys, i as createResolvedDirectoryEntriesLister, l as listDirectoryUserEntriesFromAllowFromAndMapKeys, m as toDirectoryEntries, n as collectNormalizedDirectoryIds, o as listDirectoryGroupEntriesFromMapKeys, p as listResolvedDirectoryUserEntriesFromAllowFrom, r as createInspectedDirectoryEntriesLister, s as listDirectoryGroupEntriesFromMapKeysAndAllowFrom, t as applyDirectoryQueryAndLimit, u as listInspectedDirectoryEntriesFromSources } from "./directory-config-helpers-BWblESwl.js";

//#region src/plugin-sdk/compat.d.ts
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
declare const createChannelReplyPipeline: typeof createChannelReplyPipeline$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
declare const createReplyPrefixContext: typeof createReplyPrefixContext$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
declare const createReplyPrefixOptions: typeof createReplyPrefixOptions$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
declare const createTypingCallbacks: typeof createTypingCallbacks$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
declare const resolveChannelSourceReplyDeliveryMode: typeof resolveChannelSourceReplyDeliveryMode$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type ChannelReplyPipeline = ChannelReplyPipeline$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type CreateTypingCallbacksParams = CreateTypingCallbacksParams$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type ReplyPrefixContext = ReplyPrefixContext$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type ReplyPrefixContextBundle = ReplyPrefixContextBundle$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type ReplyPrefixOptions = ReplyPrefixOptions$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type SourceReplyDeliveryMode = SourceReplyDeliveryMode$1;
/** @deprecated Use `openclaw/plugin-sdk/channel-outbound`. */
type TypingCallbacks = TypingCallbacks$1;
//#endregion
export { AllowFromListSchema, type ApiKeyStorageOptions, BlockStreamingCoalesceSchema, type ChannelDirectoryEntry, type ChannelDirectoryEntryKind, type ChannelGroupPolicy, type ChannelHistoryWindow, ChannelMutableAllowlistCandidate, ChannelReplyPipeline, ContextVisibilityModeSchema, CreateTypingCallbacksParams, DEFAULT_GROUP_HISTORY_LIMIT, DM_GROUP_ACCESS_REASON, type DiagnosticEventPayload, type DirectoryConfigParams, DmConfigSchema, DmPolicySchema, GroupPolicySchema, type GroupToolPolicyBySenderConfig, type GroupToolPolicyConfig, HISTORY_CONTEXT_MARKER, type HistoryEntry, type HistoryMediaEntry, KeyedAsyncQueue, MarkdownConfigSchema, type MemoryPluginCapability, type MemoryPluginPublicArtifact, type MemoryPluginPublicArtifactsProvider, MentionPatternsPolicySchema, type ReadOnlyInspectedAccount, ReplyPrefixContext, ReplyPrefixContextBundle, ReplyPrefixOptions, ReplyRuntimeConfigSchemaShape, SourceReplyDeliveryMode, ToolPolicySchema, TypingCallbacks, type WriteOAuthCredentialsOptions, applyAuthProfileConfig, applyDirectoryQueryAndLimit, buildAccountScopedDmSecurityPolicy, buildApiKeyCredential, buildCatchallMultiAccountChannelSchema, buildChannelConfigSchema, buildHistoryContext, buildHistoryContextFromEntries, buildHistoryContextFromMap, buildInboundHistoryFromEntries, buildInboundHistoryFromMap, buildJsonChannelConfigSchema, buildMemorySystemPromptAddition, buildNestedDmConfigSchema, buildOpenGroupPolicyConfigureRouteAllowlistWarning, buildOpenGroupPolicyRestrictSendersWarning, buildOpenGroupPolicyWarning, buildPendingHistoryContextFromMap, clearHistoryEntries, clearHistoryEntriesIfEnabled, coerceNativeSetting, collectAllowlistProviderGroupPolicyWarnings, collectAllowlistProviderRestrictSendersWarnings, collectNormalizedDirectoryIds, collectOpenGroupPolicyConfiguredRouteWarnings, collectOpenGroupPolicyRestrictSendersWarnings, collectOpenGroupPolicyRouteAllowlistWarnings, collectOpenProviderGroupPolicyWarnings, composeAccountWarningCollectors, composeWarningCollectors, createAccountStatusSink, createAllowlistProviderGroupPolicyWarningCollector, createAllowlistProviderOpenWarningCollector, createAllowlistProviderRestrictSendersWarningCollector, createAllowlistProviderRouteAllowlistWarningCollector, createChannelDirectoryAdapter, createChannelHistoryWindow, createChannelReplyPipeline, createConditionalWarningCollector, createDangerousNameMatchingMutableAllowlistWarningCollector, createEmptyChannelDirectoryAdapter, createHybridChannelConfigAdapter, createHybridChannelConfigBase, createInspectedDirectoryEntriesLister, createOpenGroupPolicyRestrictSendersWarningCollector, createOpenProviderConfiguredRouteWarningCollector, createOpenProviderGroupPolicyWarningCollector, createPluginRuntimeStore, createReplyPrefixContext, createReplyPrefixOptions, createResolvedDirectoryEntriesLister, createRestrictSendersChannelSecurity, createRuntimeDirectoryLiveAdapter, createScopedAccountConfigAccessors, createScopedChannelConfigAdapter, createScopedChannelConfigBase, createScopedDmSecurityResolver, createTopLevelChannelConfigAdapter, createTopLevelChannelConfigBase, createTypingCallbacks, delegateCompactionToRuntime, emptyChannelDirectoryList, emptyPluginConfigSchema, evaluateGroupRouteAccessForPolicy, evaluateSenderGroupAccessForPolicy, evictOldHistoryKeys, formatAllowFromLowercase, formatNormalizedAllowFromEntries, inspectReadOnlyChannelAccount, listDirectoryEntriesFromSources, listDirectoryGroupEntriesFromMapKeys, listDirectoryGroupEntriesFromMapKeysAndAllowFrom, listDirectoryUserEntriesFromAllowFrom, listDirectoryUserEntriesFromAllowFromAndMapKeys, listInspectedDirectoryEntriesFromSources, listResolvedDirectoryEntriesFromSources, listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom, mapAllowFromEntries, mapAllowlistResolutionInputs, normalizeAccountId, normalizeAllowFromList, normalizeHistoryMediaEntries, nullChannelDirectorySelf, onDiagnosticEvent, optionalStringEnum, projectAccountConfigWarningCollector, projectAccountWarningCollector, projectConfigAccountIdWarningCollector, projectConfigWarningCollector, projectWarningCollector, readStoreAllowFromForDmPolicy, recordPendingHistoryEntry, recordPendingHistoryEntryIfEnabled, recordPendingHistoryEntryWithMedia, registerContextEngine, requireAllowlistAllowFrom, requireOpenAllowFrom, resolveChannelGroupPolicy, resolveChannelGroupRequireMention, resolveChannelGroupToolsPolicy, resolveChannelSourceReplyDeliveryMode, resolveControlCommandGate, resolveDmGroupAccessWithCommandGate, resolveDmGroupAccessWithLists, resolveEffectiveAllowFromLists, resolveOpenDmAllowlistAccess, resolvePreferredOpenClawTmpDir, resolveSenderScopedGroupPolicy, resolveToolsBySender, stringEnum, toDirectoryEntries, upsertApiKeyProfile, writeOAuthCredentials };