/** * DriveConnector — polls Google Drive changes via the gws CLI tool. * Uses short synchronous gws checks during setup and asynchronous calls while polling. * Emits file_change NormalizedItems for files modified in configured folders. */ import type { AuthRequirement, ConnectorConfig, ConnectorHealth, IConnector, NormalizedItem } from '../framework/types.js'; export declare class DriveConnector implements IConnector { readonly name = "drive"; readonly type: "api"; private config; private lastPollTime; private lastPollCount; private lastError; /** Stored page tokens per poll session (single global token for Drive changes API) */ private pageTokens; private readonly stateFilePath; constructor(config: ConnectorConfig); init(): Promise; private loadState; private saveState; dispose(): Promise; healthCheck(): Promise; getAuthRequirements(): AuthRequirement[]; authenticate(): Promise; /** * Find which channel config matches based on a file's parent folder IDs. * Returns [channelKey, channelName] or null if no match. */ private findChannelByParent; /** * Get shared drive IDs from channel configs. * Channels with a driveId property are treated as shared drive sources. */ private getSharedDriveIds; /** * Poll changes from a single drive (personal or shared). * Returns items and updates the page token. */ private pollDrive; poll(_since: Date): Promise; } //# sourceMappingURL=index.d.ts.map