UNPKG

2.06 kBTypeScriptView Raw
1import { PlatformOSType } from 'react-native';
2import type { Fonts, MD3Type, MD3Typescale, MD3TypescaleKey } from '../types';
3export declare const fontConfig: {
4 web: {
5 regular: {
6 fontFamily: string;
7 fontWeight: "400";
8 };
9 medium: {
10 fontFamily: string;
11 fontWeight: "500";
12 };
13 light: {
14 fontFamily: string;
15 fontWeight: "300";
16 };
17 thin: {
18 fontFamily: string;
19 fontWeight: "100";
20 };
21 };
22 ios: {
23 regular: {
24 fontFamily: string;
25 fontWeight: "400";
26 };
27 medium: {
28 fontFamily: string;
29 fontWeight: "500";
30 };
31 light: {
32 fontFamily: string;
33 fontWeight: "300";
34 };
35 thin: {
36 fontFamily: string;
37 fontWeight: "100";
38 };
39 };
40 default: {
41 regular: {
42 fontFamily: string;
43 fontWeight: "normal";
44 };
45 medium: {
46 fontFamily: string;
47 fontWeight: "normal";
48 };
49 light: {
50 fontFamily: string;
51 fontWeight: "normal";
52 };
53 thin: {
54 fontFamily: string;
55 fontWeight: "normal";
56 };
57 };
58};
59type MD2FontsConfig = {
60 [platform in PlatformOSType | 'default']?: Fonts;
61};
62export default function configureFonts(params: {
63 isV3: false;
64}): Fonts;
65export default function configureFonts(params: {
66 config?: MD2FontsConfig;
67 isV3: false;
68}): Fonts;
69export default function configureFonts(params?: {
70 config?: Partial<MD3Type>;
71 isV3?: true;
72}): MD3Typescale;
73export default function configureFonts(params?: {
74 config?: Partial<Record<MD3TypescaleKey, Partial<MD3Type>>>;
75 isV3?: true;
76}): MD3Typescale;
77export default function configureFonts(params: {
78 config: Record<string, MD3Type>;
79 isV3?: true;
80}): MD3Typescale & {
81 [key: string]: MD3Type;
82};
83export {};
84//# sourceMappingURL=fonts.d.ts.map
\No newline at end of file