/** * OAuth token management for Spinta API */ /** * Token cache for managing OAuth tokens */ export declare class TokenCache { private cachedToken; private readonly authUrl; private readonly clientId; private readonly clientSecret; private readonly scopes; constructor(authUrl: string, clientId: string, clientSecret: string, scopes: readonly string[]); /** * Check if current token is valid (exists and not near expiry) */ isValid(): boolean; /** * Get current token, fetching or refreshing if needed */ getToken(): Promise; /** * Fetch a new token from the auth server */ private refresh; /** * Clear the cached token (useful for logout or forced refresh) */ clear(): void; } //# sourceMappingURL=auth.d.ts.map