import type { PreviewKind } from './types'; /** * Extract the lower-cased extension (no leading dot) from a URL or filename. * * Strips query strings and fragments. Returns empty string if there is no * extension. */ export declare function extractExtension(input: string): string; export declare function extractFilename(url: string, override?: string): string; /** * Resolve a `PreviewKind` for a given URL / filename / Content-Type. * * Resolution order: * 1. Content-Type, if provided and matched * 2. File extension, if known * 3. `'unsupported'` */ export declare function detectKind(urlOrFilename: string, contentType?: string | null): PreviewKind; /** * Human-readable label for a kind, used in the header type badge. */ export declare function kindLabel(kind: PreviewKind, extension?: string): string; //# sourceMappingURL=detect.d.ts.map