import { type AcApDataSource, type AcApDataSourceAccountProfile, type AcApDataSourceAuthState, type AcApDataSourceFile, type AcApDataSourceManager } from '@mlightcad/cad-simple-viewer'; import { type OneDriveClientOptions } from './oneDriveClient'; /** Built-in OneDrive data source id. */ export declare const ACAP_ONEDRIVE_DATA_SOURCE_ID = "onedrive"; /** * Data source that opens DWG/DXF files from Microsoft OneDrive / SharePoint. * * Implements the {@link AcApDataSource} host contract: UI layers only call * `signIn` / `pick` / `restoreSession` — all File Picker and download logic * stays inside this class. */ export declare class AcApOneDriveDataSource implements AcApDataSource { readonly id = "onedrive"; readonly labelKey = "main.dataSource.onedrive"; readonly requiresAuth = true; readonly requiresUserGesture = true; private readonly client; private readonly dataSourceManager; private initPromise; constructor(options: OneDriveClientOptions, dataSourceManager: AcApDataSourceManager); private ensureInit; getAuthState(): AcApDataSourceAuthState; getAccountLabel(): string | undefined; getAccountProfile(): AcApDataSourceAccountProfile | undefined; /** * Loads MSAL cache / redirect result so Open menus show signed-in state * without requiring another interactive login. */ restoreSession(): Promise; signIn(): Promise; signOut(): Promise; pick(): Promise; private notifyAuthChanged; } //# sourceMappingURL=AcApOneDriveDataSource.d.ts.map