import { IExecuteFunctions } from 'n8n-workflow'; export interface IWithingsTokenResponse { status: number; body?: { access_token: string; refresh_token: string; expires_in: number; userid: string; scope: string; }; error?: string; } export declare function exchangeAuthorizationCode(context: IExecuteFunctions, clientId: string, clientSecret: string, authorizationCode: string, redirectUri: string): Promise; export declare function refreshAccessToken(context: IExecuteFunctions, clientId: string, clientSecret: string, refreshToken: string): Promise; export declare function isTokenExpired(expiresAt: number, bufferSeconds?: number): boolean; export declare function updateCredentialTokens(context: IExecuteFunctions, tokenData: { accessToken: string; refreshToken: string; expiresAt: number; }): Promise;