import { IBlingTokenSet } from './token-set.interface'; export interface IJwtAuthOptions { method: 'jwt'; accessToken: string; } export interface IOpaqueAuthOptions { method: 'opaque'; accessToken: string; } export interface IOAuthAuthOptions { method: 'oauth'; clientId: string; clientSecret: string; oauthBaseUrl?: string; accessToken?: string; refreshToken?: string; autoRefresh?: boolean; onTokens?: (tokens: IBlingTokenSet) => void | Promise; } export type IBlingAuthOptions = IJwtAuthOptions | IOpaqueAuthOptions | IOAuthAuthOptions; export interface IBlingOptions { baseUrl?: string; auth: TAuth; }