import { PLATFORM_CODES, REGION_CODES } from "./constants"; export declare namespace CrocDB { type PlatformCode = typeof PLATFORM_CODES[number]; type RegionCode = typeof REGION_CODES[number]; type Link = { name: string; value: string; source: string; ext: string; host: string; }; type ROM = { gameid: number; slug: string; original_name: string; title: string; title_human: string; platform: PlatformCode; regions: Array; format: string; size: number; size_human: string; links: Array; }; type SearchRequest = Partial & { platform: Array; limit: number; page: number; }>; type SearchResponse = Array; type RegionsResponse = Record; type PlatformsResponse = Record; class RequestError extends Error { static fromResponse(response: Response, requestData?: TRequestData): Promise; } } export declare const api: { search: (request: CrocDB.SearchRequest) => Promise; platforms: () => Promise; regions: () => Promise; };