import { SimpleFile } from '../model/GoogleFile.js';
import { QuotaLimiter } from './QuotaLimiter.js';
interface GoogleDriveServiceErrorParams {
    isQuotaError: boolean;
    status?: number;
    file?: SimpleFile;
    folderId?: string;
}
export declare class GoogleDriveServiceError extends Error {
    status: number;
    private file;
    private folderId;
    private isQuotaError;
    constructor(msg: string, params?: GoogleDriveServiceErrorParams);
}
export declare function filterParams(params: Record<string, string | number | boolean>): Record<string, string>;
export declare function convertResponseToError(response: Response, requestInfo?: RequestInfo): Promise<GoogleDriveServiceError>;
export declare function driveFetch(quotaLimiter: QuotaLimiter, accessToken: string, method: string, url: string, params: Record<string, string | number | boolean>, bodyReq?: unknown): Promise<any>;
export declare function driveFetchStream(quotaLimiter: QuotaLimiter, accessToken: string, method: string, url: string, params: Record<string, string | number | boolean>): Promise<ReadableStream<Uint8Array>>;
export declare function driveFetchMultipart<T>(quotaLimiter: QuotaLimiter, accessToken: string, method: string, requestUrl: string, params: Record<string, string | number | boolean>, formData: FormData): Promise<T>;
export {};
//# sourceMappingURL=driveFetch.d.ts.map