macOS purgeable space
macOS has a concept of purgeable space. It can be treated like free space for most purposes, because the OS deletes from it if space gets too low. As such, it would make sense to either include it in Filesystem.avail or add it as a separate API.
would make sense to either include it in Filesystem.avail
No, on all unix platforms the free/avail/total fields directly correspond to the struct statfs fields and it should stay like that (I'll add some documentation comments).
add it as a separate API
I guess that would be fine, though we haven't had any platform-specific functions yet…
What is the API to retrieve it, btw?
Good question. The third-party app DaisyDisk can detect it so it's definitely possible, and the “About This Mac” dialog shows it as available immediately so it doesn't require traversing the file hierarchy, but I haven't been able to find any info about how, and DaisyDisk is closed-source.