import { app } from '../lexicons/index.js'; export type MuteWordMatch = { /** * The `app.bsky.actor.defs.MutedWord` that matched. */ word: app.bsky.actor.defs.MutedWord; /** * The string that matched the muted word. */ predicate: string; }; export type Params = { mutedWords: app.bsky.actor.defs.MutedWord[]; text: string; facets?: app.bsky.richtext.facet.Main[]; outlineTags?: string[]; languages?: string[]; actor?: app.bsky.actor.defs.ProfileView | app.bsky.actor.defs.ProfileViewBasic; }; /** * Checks if the given text matches any of the muted words, returning an array * of matches. If no matches are found, returns `undefined`. */ export declare function matchMuteWords({ mutedWords, text, facets, outlineTags, languages, actor, }: Params): MuteWordMatch[] | undefined; /** * Checks if the given text matches any of the muted words, returning a boolean * if any matches are found. */ export declare function hasMutedWord(params: Params): boolean; //# sourceMappingURL=mutewords.d.ts.map