/** whitelist.ts — Pure whitelist authoriser for Telegram sender ids. No side effects, no network. */ /** Immutable set of allowed numeric Telegram user ids. */ export type AllowedUsers = ReadonlySet; /** * Parses TELEGRAM_ALLOWED_USERS from the given env map. * Expects a comma-separated list of positive integer Telegram user ids. * Empty or missing env var returns an empty set. * Whitespace around ids is trimmed; non-numeric tokens are silently ignored. */ export declare function parseAllowedUsers(env: Record): AllowedUsers; /** * Returns true if the numeric sender id is present in the allowed set. */ export declare function isAllowed(id: number, allowed: AllowedUsers): boolean; /** * Returns a denial message that echoes the sender's exact numeric id as a substring (sc-1-4). * The id appears verbatim inside the message so the sender knows which account was rejected. */ export declare function denialReply(id: number): string; //# sourceMappingURL=whitelist.d.ts.map