import type { Buffer } from 'node:buffer'; import type { FetchJsonOptions } from './browser/fetch'; import type { DiscordWebhookPayload } from './types'; export interface DiscordWebhookFile { buffer: Buffer; filename: string; /** @default 'image/png' */ contentType?: string; } /** Transport options, like `sendGotify`'s. */ export type DiscordFetchOptions = Pick; /** Discord CDN avatar URL; picks `gif` for animated hashes (`a_` prefix), else `png`. */ export declare function getDiscordAvatarUrl(userId: string, avatarHash: string): string; /** Discord CDN banner URL; picks `gif` for animated hashes (`a_` prefix), else `png`. */ export declare function getDiscordBannerUrl(userId: string, bannerHash: string): string; /** POSTs `payload` and `files` to a Discord webhook, with a default timeout. Throws `FetchError` on a non-2xx response. */ export declare function sendDiscordWebhook(url: string, payload: DiscordWebhookPayload, files?: DiscordWebhookFile[], options?: DiscordFetchOptions): Promise; //# sourceMappingURL=discord.d.ts.map