import type { OAuthConfig } from '#auth-utils'; export interface OAuthBattledotnetConfig { /** * Battle.net OAuth Client ID * @default process.env.NUXT_OAUTH_BATTLEDOTNET_CLIENT_ID */ clientId?: string; /** * Battle.net OAuth Client Secret * @default process.env.NUXT_OAUTH_BATTLEDOTNET_CLIENT_SECRET */ clientSecret?: string; /** * Battle.net OAuth Scope * @default [] * @see https://develop.battle.net/documentation/guides/using-oauth * @example ['openid', 'wow.profile', 'sc2.profile', 'd3.profile'] */ scope?: string[]; /** * Battle.net OAuth Region * @default EU * @see https://develop.battle.net/documentation/guides/using-oauth * @example EU (possible values: US, EU, APAC) */ region?: string; /** * Battle.net OAuth Authorization URL * @default 'https://oauth.battle.net/authorize' */ authorizationURL?: string; /** * Battle.net OAuth Token URL * @default 'https://oauth.battle.net/token' */ tokenURL?: string; /** * Extra authorization parameters to provide to the authorization URL * @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow */ authorizationParams?: Record; /** * Redirect URL to to allow overriding for situations like prod failing to determine public hostname * @default process.env.NUXT_OAUTH_BATTLEDOTNET_REDIRECT_URL or current URL */ redirectURL?: string; } export declare function defineOAuthBattledotnetEventHandler({ config, onSuccess, onError }: OAuthConfig): import("nuxt/server").EventHandler>;