import type { Tenant } from "../types";
/**
 * Reads the cached user_nicename from the LOCAL_STORAGE_KEYS.USER_DATA blob.
 */
export declare const getUserName: () => string | null;
/**
 * Reads the cached user_email from the LOCAL_STORAGE_KEYS.USER_DATA blob.
 */
export declare const getUserEmail: () => string | null;
/**
 * Whether Stripe-backed billing is active for the given tenant. The Stripe
 * feature flag is a host-side config value; pass it in. Tenants opt in via
 * `show_paywall` or by being the "main" platform tenant.
 */
export declare function isStripeActivated(currentTenant: Tenant | null | undefined, stripeEnabled: boolean): boolean;
/**
 * Checks whether a file matches any of the accepted type specifiers.
 * Supports MIME types (image/png), wildcard MIME (image/*), and extensions (.pdf).
 */
export declare function isFileAccepted(file: File, acceptedTypes: string[]): boolean;
export declare const isJSON: (text: string) => boolean;
export declare const getInitials: (fullName: string) => string;
export declare const ALPHANUMERIC_32_REGEX: RegExp;
export declare const isAlphaNumeric32: (text: string) => boolean;
export declare const addProtocolToUrl: (url: string) => string;
export declare function getTimeAgo(createdAt: string): string;
export declare const formatRelativeTime: (timestamp: string) => string;
/**
 * Convert markdown text to plain text by removing markdown formatting
 * @param text - The markdown text to convert
 * @returns Plain text without markdown formatting
 */
export declare const markdownToPlainText: (text: string) => string;
