import type { MutedWord, ProfileView, ProfileViewBasic } from '../lexicons/app/bsky/actor/defs.defs.js'; import { type Main as Facet } from '../lexicons/app/bsky/richtext/facet.defs.js'; export type MuteWordMatch = { /** * The `app.bsky.actor.defs.MutedWord` that matched. */ word: MutedWord; /** * The string that matched the muted word. */ predicate: string; }; export type Params = { mutedWords: MutedWord[]; text: string; facets?: Facet[]; outlineTags?: string[]; languages?: string[]; actor?: ProfileView | 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