import { FormatId, FormatSpec } from './types.js'; export declare function detectFormat(filename: string, mimeType?: string): FormatId | null; /** * Get all registered format specs. */ export declare function getFormatSpecs(): readonly FormatSpec[]; /** * Get the format spec for a specific FormatId. */ export declare function getFormatSpec(id: FormatId): FormatSpec | undefined;