import { ServiceLoaderLoadOptions } from '@o/kit';
import { GMailHistory, GMailThread, GMailThreadResult, GMailUserProfile } from './GMailModels';
/**
 * GMail queries.
 *
 * @see https://developers.google.com/gmail/api/v1/reference/
 */
export declare class GMailQueries {
    /**
     * Gets the user profile information.
     *
     * @see https://developers.google.com/gmail/api/v1/reference/users/getProfile
     */
    static userProfile(userId?: string): ServiceLoaderLoadOptions<GMailUserProfile>;
    /**
     * Gets the list of user threads.
     *
     * @see https://developers.google.com/gmail/api/v1/reference/users/threads/list
     */
    static threads(max: number, filter?: string, pageToken?: string, userId?: string): ServiceLoaderLoadOptions<GMailThreadResult>;
    /**
     * Gets a single thread. Used to get thread messages.
     *
     * @see https://developers.google.com/gmail/api/v1/reference/users/threads/get
     */
    static thread(threadId: string, userId?: string): ServiceLoaderLoadOptions<GMailThread>;
    /**
     * Gets all history records since a given startHistoryId.
     * Used to get history of new events in the mail since last history event id.
     *
     * @see https://developers.google.com/gmail/api/v1/reference/users/history/list
     */
    static history(startHistoryId: string, pageToken?: string | undefined, userId?: string): ServiceLoaderLoadOptions<GMailHistory>;
}
