Reorganize type aliases into dedicated directories and add application-specific type definitions for chunk index, file size, frame length, and IDs. Improves code clarity and type safety.