import { TiktokConfig } from '../dto/request/config.request'; import { TiktokResponseCommon } from '../dto/response/config.response'; import { TiktokGetAccessTokenParams, TiktokRefreshAccessTokenParams } from '../dto/request/auth-v3.request'; import { TiktokAccessTokenResponse } from '../dto/response/auth-v3.response'; /** * Exchange an authorization code for an access token. * This method should be used after the user authorizes your app and you receive a code. * * @param params - Includes `auth_code` and optional `grant_type` * @param config - Tiktok API configuration. * @returns Promise resolving to an AccessTokenResponse object */ export declare function getAccessToken(params: TiktokGetAccessTokenParams, config: TiktokConfig): Promise>; /** * Refresh an existing access token using a refresh token. * This is useful when the original access token has expired. * * @param params - Includes `refresh_token` and `grant_type` * @param config - Tiktok API configuration. * @returns Promise resolving to an AccessTokenResponse object */ export declare function refreshAccessToken(params: TiktokRefreshAccessTokenParams, config: TiktokConfig): Promise>;