import type { mastodon } from "masto";
import type { BskyPostResult } from "./skeet.js";
/**
 * Kludge (or superstition) to try to avoid hitting API rate limits. Should be
 * made configurable -- or rate limiting should just be handled better.
 */
export declare const WAIT_TIME_BETWEEN_REPLIES = 50;
export declare function formatRejection(rej: PromiseRejectedResult): string;
export declare const formatMastoStatus: (s: mastodon.v1.Status) => string;
export declare const formatBskyStatus: (s: BskyPostResult) => string;
export declare function doWithRetryAndTimeout<T extends () => Promise<any>>(fn: T, context: string): Promise<T extends () => Promise<infer U> ? U : never>;
