1 |
|
2 |
|
3 | import type { Mode } from 'node:fs';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare const supportMagicFileTypes: ReadonlySet<import("file-type").FileExtension>;
|
9 |
|
10 |
|
11 |
|
12 | export declare function getFileType(fileContents: Buffer): Promise<null | {
|
13 | ext: string;
|
14 | type?: string;
|
15 | subtype?: string;
|
16 | }>;
|
17 |
|
18 |
|
19 |
|
20 | export declare function computeFileTypeFromName(clientName: string, headers: {
|
21 | [key: string]: string;
|
22 | }): {
|
23 | ext: string;
|
24 | type?: string;
|
25 | subtype?: string;
|
26 | };
|
27 |
|
28 |
|
29 |
|
30 | export declare function pathExists(filePath: string): Promise<boolean>;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function moveFile(sourcePath: string, destinationPath: string, options?: {
|
36 | overwrite: boolean;
|
37 | directoryMode?: Mode;
|
38 | }): Promise<void>;
|