import { ImageRequireSource } from 'react-native'; import { Registry, RegistryInputItem, RegistryItem } from './Registry'; export interface FontRegistryItemExtras { preload: boolean; } export type FontValue = ImageRequireSource | string; export type Font = RegistryItem & FontRegistryItemExtras; export type FontInput = RegistryInputItem; export type FontCollection = { [key: string]: FontInput; }; /** * 🔠 FontRegistry */ export declare class FontRegistry extends Registry { load(): Promise; /** * Convert any input value to an item. This is where you transform inputs and add defualts * @param key * @param partial */ protected createItem(key: string, partial: any): Font; /** * Typeguard to check a given object is a registry value * @param value */ protected isValue(value: any): value is Font['value']; /** * Typeguard to check a given object is an input value * @param value */ protected isInputValue(value: any): value is FontInput['value']; }