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-BdhtzyVj.js"; import { s as withNormalizedTimestamp } from "./date-time-WJbJXOrS.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-DYcWd2Ud.js"; import { TSchema } from "typebox"; //#region src/channels/plugins/actions/shared.d.ts type OptionalDefaultGate = (key: TKey, defaultValue?: boolean) => boolean; type TokenSourcedAccount = { tokenSource?: string | null; }; declare function listTokenSourcedAccounts(accounts: readonly TAccount[]): TAccount[]; 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; }; 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 };