1 | import '../';
|
2 |
|
3 | export interface ModeInfo {
|
4 | name: string;
|
5 | mime?: string | undefined;
|
6 | mimes?: string[] | undefined;
|
7 | mode: string;
|
8 | file?: RegExp | undefined;
|
9 | ext?: string[] | undefined;
|
10 | alias?: string[] | undefined;
|
11 | }
|
12 |
|
13 | declare module '../' {
|
14 | const modeInfo: ModeInfo[];
|
15 | function findModeByMIME(mime: string): ModeInfo | undefined;
|
16 | function findModeByExtension(ext: string): ModeInfo | undefined;
|
17 | function findModeByFileName(filename: string): ModeInfo | undefined;
|
18 | function findModeByName(name: string): ModeInfo | undefined;
|
19 | }
|