import type { Settings } from "@opengeni/config"; import { type Database } from "./database.js"; /** Zero admits one request; a positive value asks the caller to retry later. * Cooldowns contain no credential, actor, message, or channel data and grant no authority. * Admission commits before dispatch; a lost response still consumes its slot. */ export declare function buildSlackApiRateLimiter(db: Database, settings: Pick): (teamId: string, method: string, retryAfterSeconds?: number) => Promise;