import { type OAuthTokens } from './providers'; import type { LTDecryptedToken } from '../../types/oauth'; import type { LTUserRecord } from '../../types/user'; export declare function upsertOAuthToken(userId: string, provider: string, tokens: OAuthTokens, scopes: string[], providerUserId: string, providerEmail: string | null, metadata?: Record, label?: string): Promise; export declare function getOAuthToken(userId: string, provider: string, label?: string): Promise; /** * Get a fresh access token, refreshing if expired. * Returns the access token string ready for use in API calls. */ export declare function getFreshAccessToken(userId: string, provider: string, label?: string): Promise; export declare function listOAuthConnections(userId: string): Promise>; export declare function deleteOAuthConnection(userId: string, provider: string, label?: string): Promise; export declare function getUserByOAuthProvider(provider: string, providerUserId: string): Promise;