mirror of
https://github.com/misskey-dev/media-proxy.git
synced 2025-04-29 02:47:26 +09:00
12 lines
359 B
TypeScript
12 lines
359 B
TypeScript
export declare function detectType(path: string): Promise<{
|
|
mime: string;
|
|
ext: string | null;
|
|
}>;
|
|
declare const dictionary: {
|
|
'safe-file': string[];
|
|
'sharp-convertible-image': string[];
|
|
'sharp-animation-convertible-image': string[];
|
|
};
|
|
export declare const isMimeImage: (mime: string, type: keyof typeof dictionary) => boolean;
|
|
export {};
|