export declare class GoogleDriveAPIError extends Error { readonly code?: number | undefined; constructor(message: string, code?: number | undefined); } export declare function getValidAccessToken({ accessToken, expiresAt, clientId, clientSecret, refreshToken, forceRefresh, }: { clientId: string; clientSecret: string; accessToken?: string | null; expiresAt?: string | null; refreshToken: string; forceRefresh?: boolean; }): Promise<{ accessToken: string; expiresAt: number; refreshed: boolean; }>; type GoogleDriveRequestOptions = { method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; body?: Record; query?: Record; }; export declare function makeGoogleDriveRequest(endpoint: string, credentials: string, options?: GoogleDriveRequestOptions): Promise; export declare function makeAuthenticatedGoogleDriveRequest(endpoint: string, ctx: { key: string; _refreshAuth?: () => Promise; }, options?: GoogleDriveRequestOptions): Promise; export {}; //# sourceMappingURL=client.d.ts.map