1 | import { PlatformOSType } from 'react-native';
|
2 | import type { Fonts, MD3Type, MD3Typescale, MD3TypescaleKey } from '../types';
|
3 | export 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 | };
|
59 | declare type MD2FontsConfig = {
|
60 | [platform in PlatformOSType | 'default']?: Fonts;
|
61 | };
|
62 | export default function configureFonts(params: {
|
63 | isV3: false;
|
64 | }): Fonts;
|
65 | export default function configureFonts(params: {
|
66 | config?: MD2FontsConfig;
|
67 | isV3: false;
|
68 | }): Fonts;
|
69 | export default function configureFonts(params?: {
|
70 | config?: Partial<MD3Type>;
|
71 | isV3?: true;
|
72 | }): MD3Typescale;
|
73 | export default function configureFonts(params?: {
|
74 | config?: Partial<Record<MD3TypescaleKey, Partial<MD3Type>>>;
|
75 | isV3?: true;
|
76 | }): MD3Typescale;
|
77 | export default function configureFonts(params: {
|
78 | config: Record<string, MD3Type>;
|
79 | isV3?: true;
|
80 | }): MD3Typescale & {
|
81 | [key: string]: MD3Type;
|
82 | };
|
83 | export {};
|
84 |
|
\ | No newline at end of file |