import { CacheService, PropertyService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services'; import { GmailIntegrationOauthDto } from '../dtos/gmail.integration.oauth.dto'; import { BusinessEmailEntity } from '../entities/business.email.entity'; export declare class GmailIntegrationService { private readonly propertyService; private readonly remoteRequestService; private readonly cacheService; private redirectUri; private oauthScope; private client_secret; private client_id; constructor(propertyService: PropertyService, remoteRequestService: RemoteRequestService, cacheService: CacheService); getEmailsList(email_id: number, maxResults?: number): Promise; getEmailMessageDetails(email_id: number, message_id: string): Promise; getEmailAttachment(email_id: number, message_id: string, attachment_id: string): Promise; getCredential(email_id: number): Promise; refreshOauthToken(email_id: number): Promise; getOauthToken(code: string, body: { user_id: number; business_id: number; product_id: number; }): Promise; private setOauthToken; getOAuthUrl(user_id: number, business_id: number, body: GmailIntegrationOauthDto): Promise; private setProperties; private getClientId; private getClientSecret; private getOauthScope; }