UNPKG

wave-roll

Version:

JavaScript Library for Comparative MIDI Piano-Roll Visualization

25 lines 728 B
/** * Validate file ID * * @param fileId - The file ID to validate * @returns `true` if the file ID is valid, `false` otherwise * * @example * ```ts * isValidFileId("123"); // true * isValidFileId(""); // false */ export declare function isValidFileId(fileId: string): boolean; /** * Check if a file is a valid MIDI file based on extension * @param file - File to check * @returns Whether the file has a valid MIDI extension */ export declare function isValidMidiFile(file: File): boolean; /** * Get file size in human-readable format * @param bytes - File size in bytes * @returns Formatted file size string */ export declare function formatFileSize(bytes: number): string; //# sourceMappingURL=utils.d.ts.map