export type AllowlistMatchSource = "wildcard" | "id" | "name" | "tag" | "username" | "prefixed-id" | "prefixed-user" | "prefixed-name" | "slug" | "localpart"; export type AllowlistMatch = { allowed: boolean; matchKey?: string; matchSource?: TSource; }; export type CompiledAllowlist = { set: ReadonlySet; wildcard: boolean; }; export declare function formatAllowlistMatchMeta(match?: { matchKey?: string; matchSource?: string; } | null): string; export declare function compileAllowlist(entries: ReadonlyArray): CompiledAllowlist; export declare function resolveAllowlistCandidates(params: { compiledAllowlist: CompiledAllowlist; candidates: Array<{ value?: string; source: TSource; }>; }): AllowlistMatch; export declare function resolveCompiledAllowlistMatch(params: { compiledAllowlist: CompiledAllowlist; candidates: Array<{ value?: string; source: TSource; }>; }): AllowlistMatch; export declare function resolveAllowlistMatchByCandidates(params: { allowList: ReadonlyArray; candidates: Array<{ value?: string; source: TSource; }>; }): AllowlistMatch; export declare function resolveAllowlistMatchSimple(params: { allowFrom: ReadonlyArray; senderId: string; senderName?: string | null; allowNameMatching?: boolean; }): AllowlistMatch<"wildcard" | "id" | "name">;