import { a as resolvePollMaxSelections } from "./polls-CfHkU59X.js"; import { C as readPositiveIntegerParam, D as readStringParam, E as readStringOrNumberParam, S as readNumberParam, T as readStringArrayParam, c as ToolAuthorizationError, d as createActionGate, g as jsonResult, h as imageResultFromFile, t as ActionGate, v as parseAvailableTags, w as readReactionParams, x as readNonNegativeIntegerParam } from "./common-BQld_MGZ.js"; import { c as withNormalizedTimestamp } from "./date-time-C_aF3jiN.js"; import { t as assertMediaNotDataUrl } from "./sandbox-paths-DAVxv7sM.js"; import { a as optionalPositiveIntegerSchema, i as optionalNonNegativeIntegerSchema, o as optionalStringEnum, r as optionalFiniteNumberSchema, s as stringEnum } from "./typebox-WKHUFEwH.js"; import { TSchema } from "typebox"; //#region src/channels/plugins/actions/shared.d.ts /** * Shared channel action helpers. * * Filters token-backed accounts and composes account-level action gates. */ type OptionalDefaultGate = (key: TKey, defaultValue?: boolean) => boolean; type TokenSourcedAccount = { tokenSource?: string | null; }; /** * Filters out accounts explicitly marked as tokenless. */ declare function listTokenSourcedAccounts(accounts: readonly TAccount[]): TAccount[]; /** * Creates an action gate that is enabled when any account-level gate enables the action. */ declare function createUnionActionGate(accounts: readonly TAccount[], createGate: (account: TAccount) => OptionalDefaultGate): OptionalDefaultGate; //#endregion //#region src/channels/plugins/actions/reaction-message-id.d.ts type ReactionToolContext = { currentMessageId?: string | number; }; /** * Resolves the message id for reaction tools from explicit args or current tool context. */ declare function resolveReactionMessageId(params: { args: Record; toolContext?: ReactionToolContext; }): string | number | undefined; //#endregion //#region src/plugin-sdk/channel-actions.d.ts /** * @deprecated Use semantic `presentation` capabilities instead of exposing * provider-native button schemas through the shared message tool. */ declare function createMessageToolButtonsSchema(): TSchema; /** * @deprecated Use semantic `presentation` capabilities instead of exposing * provider-native card schemas through the shared message tool. */ declare function createMessageToolCardSchema(): TSchema; //#endregion export { type ActionGate, ToolAuthorizationError, assertMediaNotDataUrl, createActionGate, createMessageToolButtonsSchema, createMessageToolCardSchema, createUnionActionGate, imageResultFromFile, jsonResult, listTokenSourcedAccounts, optionalFiniteNumberSchema, optionalNonNegativeIntegerSchema, optionalPositiveIntegerSchema, optionalStringEnum, parseAvailableTags, readNonNegativeIntegerParam, readNumberParam, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringOrNumberParam, readStringParam, resolvePollMaxSelections, resolveReactionMessageId, stringEnum, withNormalizedTimestamp };