import type { DiscordTimestamp, Emoji } from './types.js'; export declare class DiscordComponentsError extends Error { constructor(message: string); } export declare function handleTimestamp(value: DiscordTimestamp, useTime?: boolean, hour24?: boolean): string | null; export declare const IMAGE_EXTENSION: RegExp; export declare function validateImageExtension(url: string): void; export declare function getGlobalEmojiUrl(emojiName: string): Emoji | undefined; /** * Get the image for a clan icon * * @param clanIcon - The clan icon to get the image for * @returns The image for the clan icon, or the clan icon itself if it's not found */ export declare function getClanIcon(clanIcon: string | undefined): object | string | undefined; export interface LitMemoResult { dependencies: unknown[]; value: T; } export declare const litMemo: (render: () => R, dependencies?: unknown[], old?: LitMemoResult | undefined) => LitMemoResult; export declare function dateFormatter(date: Date | string, allowWeekday?: boolean): string; //# sourceMappingURL=util.d.ts.map