diff --git a/index.d.ts b/index.d.ts index d5b72c4..096416b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -5,6 +5,14 @@ export default Bowser; export as namespace Bowser; +// Named exports for tree shaking support +export function getParser(UA: string, skipParsing?: boolean): Bowser.Parser.Parser; +export function parse(UA: string): Bowser.Parser.ParsedResult; +export const BROWSER_MAP: Record; +export const ENGINE_MAP: Record; +export const OS_MAP: Record; +export const PLATFORMS_MAP: Record; + declare namespace Bowser { /** * Creates a Parser instance