# frontend-provider-types

This is the TypeScript type definitions package for @manifoldxyz/frontend-provider. This package provides TypeScript interfaces and type definitions for the SDK.

# Installation

Install this package using npm:

```
npm install @manifoldxyz/frontend-provider-types
```

Or using yarn:

```
yarn add @manifoldxyz/frontend-provider-types
```

# Usage
This library is useful for dapps that needs typing from @manifoldxyz/frontend-provider, without the need to understand or import the actual implementations

Examples

```
import { OAuthGrantType } from '@manifoldxyz/frontend-provider-types';
import { detectManifoldEthereumProvider } from '@manifoldxyz/frontend-provider-utils';

const ethereumProvider = await detectManifoldEthereumProvider()
const accessToken = await ethereumProvider.getOAuth({
  grantType: OAuthGrantType.SIGNATURE,
  appName: appName,
  clientId: clientId,
  message: authMessage,
  delayAuth: shouldDelayAuth,
});

```

# Contributing
Contributions are welcome. Please open an issue or submit a pull request on our GitHub repository.
