// Public entry point for audio decoding.
//
// `./decodeImpl` is resolved by Metro to the right platform sibling
// (`decodeImpl.web.ts` on web, `decodeImpl.native.ts` on iOS/Android), each of
// which re-exports the matching `decoder`. Consumers call `getDecoder()` and
// stay platform-agnostic; they should never import `decode.web` / `decode.native`
// directly.

import { decoder } from './decodeImpl';

/** Return the platform-resolved audio decoder. */
export const getDecoder = () => decoder;

// Re-export the shared types (`AudioDecoder`, `AudioFileInput`).
export * from './decode';
