UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) 880 B
import type { AllowlistMatch } from "../../channels/allowlist-match.js"; export declare function normalizeSlackSlug(raw?: string): string; export declare function normalizeAllowList(list?: Array<string | number>): string[]; export declare function normalizeAllowListLower(list?: Array<string | number>): string[]; export type SlackAllowListMatch = AllowlistMatch<"wildcard" | "id" | "prefixed-id" | "prefixed-user" | "name" | "prefixed-name" | "slug">; export declare function resolveSlackAllowListMatch(params: { allowList: string[]; id?: string; name?: string; }): SlackAllowListMatch; export declare function allowListMatches(params: { allowList: string[]; id?: string; name?: string; }): boolean; export declare function resolveSlackUserAllowed(params: { allowList?: Array<string | number>; userId?: string; userName?: string; }): boolean;