import type { ViewStyle } from 'react-native'; /** * Derive up to {@link MAX_INITIALS} initials from a name. Names starting with `+` * (e.g. phone numbers) keep the leading `+`. */ export declare const abbr: (name: string, noUpperCase?: boolean) => string; /** Deterministic char-code sum used to pick a stable color for a given name. */ export declare const sumChars: (str: string) => number; /** * Resolve whether `src` points at a usable image. * * Uses the global `fetch`/`AbortController` available in modern React Native, so * no polyfill is required. Intentional aborts (unmount / `src` change) resolve to * `false` without logging. Hosts that omit `content-type` are trusted unless the * caller opts into a strict check. */ export declare const fetchImage: (src: string, options?: RequestInit, ignoreContentType?: boolean) => Promise; /** Deterministically pick a background color for a name (or use `bgColor` if given). */ export declare const generateBackgroundColor: (name: string, bgColor?: string, bgColors?: string[]) => string; /** Style variant of {@link generateBackgroundColor}. */ export declare const generateBackgroundStyle: (name: string, bgColor?: string, bgColors?: string[]) => ViewStyle; /** Container style shared by every avatar variant. */ export declare const getContainerStyle: (size: number, src?: string, borderRadius?: number) => ViewStyle; //# sourceMappingURL=helpers.d.ts.map