UNPKG

@sinedied/mini-scraper

Version:

Artwork scraper for handheld emulators.

15 lines (14 loc) 706 B
import { type Options } from './options.js'; import { ArtType } from './art.js'; export type MachineCache = Record<string, Partial<Record<ArtType, string[]>>>; export declare function getMachine(file: string, isFolder?: boolean): string | undefined; export declare function isRomFolder(folderName: string): boolean; export declare function scrapeFolder(folderPath: string, options: Options): Promise<void>; export declare function findArtUrl(filePath: string, machine: string, options: Options, type?: ArtType, fallback?: boolean): Promise<string | undefined>; export declare function getArtTypes(options: Options): { art1: ArtType; art2?: undefined; } | { art1: ArtType; art2: ArtType; };