export declare function guessMimeTypeFromExtension(filename: string): string | undefined; /** * Return a best-guess MIME type based on the magic-number signature * found at the start of an ArrayBuffer. * * @param buf – the source ArrayBuffer * @returns the detected MIME type, or `"application/octet-stream"` if unknown */ export declare function guessMimeTypeFromContents(buf: ArrayBuffer | string): string; /** * Make a contentHash of a Blob that matches the File Storage metadata, allowing * identifying when content is identical. * By default, uses SHA-256 (which is what Convex File Storage tracks). * Git / GitHub use SHA-1. * @param blob The contents to hash * @returns hash of the contents */ export declare function contentHashFromArrayBuffer(buffer: ArrayBuffer, algorithm?: "SHA-256" | "SHA-1"): Promise; /** * Split a filename into a keyword-friendly string. Specifically adds sections * of camelCase and TitleCase into a space-separated strings. * e.g. "MyFile is soGreat.txt" -> "MyFile is soGreat.txt My File so Great" * Note: it doesn't split up titles that don't have a file extension. */ export declare function splitFilename(title: string | undefined): string | undefined; //# sourceMappingURL=fileUtils.d.ts.map