import ITokenProvider from './ITokenProvider'; import Token, { TokenOptions, TokenFromJWTOptions } from './Token'; /** * A token provider that returns a static token. * Useful for testing or when the token is obtained through external means. */ export default class StaticTokenProvider implements ITokenProvider { private readonly token; /** * Creates a new StaticTokenProvider. * @param accessToken - The access token string * @param options - Optional token configuration (tokenType, expiresAt, refreshToken, scopes) */ constructor(accessToken: string, options?: TokenOptions); /** * Creates a StaticTokenProvider from a JWT string. * The expiration time will be extracted from the JWT payload. * @param jwt - The JWT token string * @param options - Optional token configuration */ static fromJWT(jwt: string, options?: TokenFromJWTOptions): StaticTokenProvider; getToken(): Promise; getName(): string; }