import type { ChannelId, ChannelMessageActionName, ChannelThreadingToolContext } from "../../channels/plugins/types.js"; import type { BotConfig } from "../../config/config.js"; import { type CrossContextComponentsBuilder } from "./channel-adapters.js"; export type CrossContextDecoration = { prefix: string; suffix: string; componentsBuilder?: CrossContextComponentsBuilder; }; export declare function enforceCrossContextPolicy(params: { channel: ChannelId; action: ChannelMessageActionName; args: Record; toolContext?: ChannelThreadingToolContext; cfg: BotConfig; }): void; export declare function buildCrossContextDecoration(params: { cfg: BotConfig; channel: ChannelId; target: string; toolContext?: ChannelThreadingToolContext; accountId?: string | null; }): Promise; export declare function shouldApplyCrossContextMarker(action: ChannelMessageActionName): boolean; export declare function applyCrossContextDecoration(params: { message: string; decoration: CrossContextDecoration; preferComponents: boolean; }): { message: string; componentsBuilder?: CrossContextComponentsBuilder; usedComponents: boolean; };