1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import type {CustomLicense, SPDXLicense} from './types';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export type ThirdPartyExtension = {
|
17 | module: ThirdPartyExtensionSubject;
|
18 | author: ThirdPartyExtensionSubject;
|
19 | };
|
20 |
|
21 | type ThirdPartyExtensionSubject = {
|
22 | name: string;
|
23 | url: string;
|
24 | };
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export type Aliases = {
|
34 | aka?: string[];
|
35 | dup?: DuplicateAlias[];
|
36 | loc?: Record<string, string>;
|
37 | };
|
38 |
|
39 | type DuplicateAlias = {
|
40 | title: string;
|
41 | hex?: string;
|
42 | guidelines?: string;
|
43 | loc?: Record<string, string>;
|
44 | };
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export type IconData = {
|
54 | title: string;
|
55 | hex: string;
|
56 | source: string;
|
57 | slug?: string;
|
58 | guidelines?: string;
|
59 | license?: Omit<SPDXLicense, 'url'> | CustomLicense;
|
60 | aliases?: Aliases;
|
61 | };
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export const URL_REGEX: RegExp;
|
67 | export const SVG_PATH_REGEX: RegExp;
|
68 | export function getDirnameFromImportMeta(importMetaUrl: string): string;
|
69 | export function getIconSlug(icon: IconData): string;
|
70 | export function svgToPath(svg: string): string;
|
71 | export function titleToSlug(title: string): string;
|
72 | export function slugToVariableName(slug: string): string;
|
73 | export function titleToHtmlFriendly(brandTitle: string): string;
|
74 | export function htmlFriendlyToTitle(htmlFriendlyTitle: string): string;
|
75 | export function getIconDataPath(rootDirectory?: string): string;
|
76 | export function getIconsDataString(rootDirectory?: string): string;
|
77 | export function getIconsData(rootDirectory?: string): IconData[];
|
78 | export function normalizeNewlines(text: string): string;
|
79 | export function normalizeColor(text: string): string;
|
80 | export function getThirdPartyExtensions(
|
81 | readmePath?: string,
|
82 | ): Promise<ThirdPartyExtension[]>;
|
83 | export const collator: Intl.Collator;
|