import type { OneDriveState, OneDriveItem } from './microsoft-onedrive-types.ts'; /** * Returns the base URL for Graph API calls up to the drive root. * Examples: * - "https://graph.microsoft.com/v1.0/me/drive" (personal / default) * - "https://graph.microsoft.com/v1.0/drives/12345" */ export declare function getDriveBaseUrl(oneDriveState: OneDriveState): string; export declare function createFolder(oneDriveState: OneDriveState, parentId: string | undefined, folderName: string): Promise; export declare function findFolder(oneDriveState: OneDriveState, parentId: string | undefined, folderName: string): Promise; export declare function ensureFolderExists(oneDriveState: OneDriveState, folderPath: string): Promise; export declare function createEmptyFile(oneDriveState: OneDriveState, parentId: string, fileName: string): Promise<{ status: number; etag: string; createdTime: string; fileId: string; size: number; }>; export declare function fillFileIfEtagMatches(oneDriveState: OneDriveState, fileId: string, etag: string, jsonContent?: any): Promise<{ status: number; etag: string; content: T | undefined; }>; export declare function deleteIfEtagMatches(oneDriveState: OneDriveState, fileId: string, etag: string): Promise; export declare function deleteFile(oneDriveState: OneDriveState, fileId: string): Promise; export declare function readJsonFileContent(oneDriveState: OneDriveState, fileId: string): Promise<{ etag: string; content: T | undefined; }>; export declare function listFilesInFolder(oneDriveState: OneDriveState, folderId: string): Promise;