import { IMessage } from '@cognigy/socket-client'; import { ChatConfig, MatchRule, MessagePlugin, MatchResult } from '../types'; /** * Check if message has channel payload */ export declare function getChannelPayload(message: IMessage, config?: ChatConfig): any; /** * Returns a copy of the default match rules. * Exposed for testing and extension purposes. * Returns a new array to prevent mutation of internal rules. */ export declare function createDefaultMatchRules(): MatchRule[]; /** * Match a message to component(s) * @param message - The message to match * @param config - Optional configuration * @param externalPlugins - Custom plugins to check first (these provide their own components) * @returns Array of matched rules/plugins */ export declare function match(message: IMessage, config?: ChatConfig, externalPlugins?: MessagePlugin[]): MatchResult[];