Files
talk-pro/node_modules/astro/dist/assets/utils/inferSourceFormat.d.ts
2026-05-12 16:16:03 +08:00

7 lines
273 B
TypeScript

/**
* Infer the image format from a source path or URL by examining
* the file extension. For data: URIs, the MIME type is extracted.
* Returns undefined if the format cannot be determined.
*/
export declare function inferSourceFormat(src: string): string | undefined;