import { i as OpenClawConfig } from "./types.openclaw-fYj4Ft14.js"; import { t as ChannelId } from "./channel-id.types-DjYEl-_2.js"; import { n as AccessGroupMembershipResolver } from "./access-groups-rMXpXSwv.js"; import { a as buildHelpMessage$1, i as buildCommandsMessagePaginated$1, r as buildCommandsMessage$1 } from "./command-status-builders-CBE9zcVB.js"; //#region src/plugin-sdk/telegram-command-ui.d.ts /** * Telegram command UI helpers exposed for plugin command pagination. */ /** Builds an inline keyboard row for paginated Telegram command listings. */ declare function buildCommandsPaginationKeyboard(currentPage: number, totalPages: number, agentId?: string): Array>; //#endregion //#region src/plugin-sdk/command-auth.d.ts /** * Inputs for legacy sender command authorization. * Kept for plugins that still compose command auth from DM/group allowlists instead of channel ingress. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ type ResolveSenderCommandAuthorizationParams = { cfg: OpenClawConfig; rawBody: string; isGroup: boolean; dmPolicy: string; configuredAllowFrom: string[]; configuredGroupAllowFrom?: string[]; senderId: string; isSenderAllowed: (senderId: string, allowFrom: string[]) => boolean; channel?: ChannelId; accountId?: string; resolveAccessGroupMembership?: AccessGroupMembershipResolver; readAllowFromStore: () => Promise; shouldComputeCommandAuthorized: (rawBody: string, cfg: OpenClawConfig) => boolean; /** @deprecated Command authorization is resolved by channel ingress. Kept for runtime injection compatibility. */ resolveCommandAuthorizedFromAuthorizers?: (params: { useAccessGroups: boolean; authorizers: Array<{ configured: boolean; allowed: boolean; }>; }) => boolean; }; /** * Injectable runtime hooks for legacy command authorization tests and channel adapters. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ type CommandAuthorizationRuntime = { shouldComputeCommandAuthorized: (rawBody: string, cfg: OpenClawConfig) => boolean; resolveCommandAuthorizedFromAuthorizers: (params: { useAccessGroups: boolean; authorizers: Array<{ configured: boolean; allowed: boolean; }>; }) => boolean; }; /** * Legacy command authorization params with runtime hooks grouped for dependency injection. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ type ResolveSenderCommandAuthorizationWithRuntimeParams = Omit & { runtime: CommandAuthorizationRuntime; }; /** * Classify direct-DM command handling after sender authorization has been computed. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ declare function resolveDirectDmAuthorizationOutcome(params: { isGroup: boolean; dmPolicy: string; senderAllowedForCommands: boolean; }): "disabled" | "unauthorized" | "allowed"; /** * Resolve legacy command authorization using an injected runtime object. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ declare function resolveSenderCommandAuthorizationWithRuntime(params: ResolveSenderCommandAuthorizationWithRuntimeParams): ReturnType; /** * Resolve whether a sender may run slash/control commands under legacy DM/group policy. * Returns effective allowlists so callers can report the exact source set used for authorization. * * @deprecated Use `resolveChannelMessageIngress` from `openclaw/plugin-sdk/channel-ingress-runtime`. */ declare function resolveSenderCommandAuthorization(params: ResolveSenderCommandAuthorizationParams): Promise<{ shouldComputeAuth: boolean; effectiveAllowFrom: string[]; effectiveGroupAllowFrom: string[]; senderAllowedForCommands: boolean; commandAuthorized: boolean | undefined; }>; /** @deprecated Use `openclaw/plugin-sdk/command-status` instead. */ declare function buildCommandsMessage(...args: Parameters): ReturnType; /** @deprecated Use `openclaw/plugin-sdk/command-status` instead. */ declare function buildCommandsMessagePaginated(...args: Parameters): ReturnType; /** @deprecated Use `openclaw/plugin-sdk/command-status` instead. */ declare function buildHelpMessage(...args: Parameters): ReturnType; //#endregion export { buildCommandsMessagePaginated as a, resolveSenderCommandAuthorization as c, buildCommandsMessage as i, resolveSenderCommandAuthorizationWithRuntime as l, ResolveSenderCommandAuthorizationParams as n, buildHelpMessage as o, ResolveSenderCommandAuthorizationWithRuntimeParams as r, resolveDirectDmAuthorizationOutcome as s, CommandAuthorizationRuntime as t, buildCommandsPaginationKeyboard as u };