/// import type { FileBlob } from "bun"; export interface FileInfo { /** * A blob with the file's info. * * @see Bun.FileBlob */ blob: FileBlob; /** * Whether the file exists. */ exists: boolean; /** * Whether the file is a file. If `false`, it is a directory. */ isFile: boolean; /** * The mime type of the file, if it can be determined. * If it cannot be determined, it will be `undefined`. */ mimeType?: string; } /** * Returns information about a file. * * @param path The path to the file * @returns Information about the file */ export default function getFileInfo(path: string): Promise;