import type { Page } from 'playwright-core'; import type { DownloadInfo, DownloadListFilters } from '../types'; export declare function markDownloadsStaged(tabId: string): void; export declare function commitStagedDownloads(tabId: string): void; export declare function buildContentUrl(id: string, userId: string): string; export declare function registerDownloadListener(tabId: string, userId: string, page: Page): void; export declare function upsertDownload(info: DownloadInfo): void; export declare function listDownloads(filters: DownloadListFilters): { downloads: DownloadInfo[]; pagination: { total: number; offset: number; limit: number; hasMore: boolean; }; }; export declare function getDownload(id: string, userId: string): DownloadInfo | null; export declare function getDownloadPath(id: string, userId: string): string | null; export declare function deleteDownload(id: string, userId: string): boolean; export declare function getRecentDownloads(tabId: string, windowMs: number): DownloadInfo[]; export declare function cleanupExpiredDownloads(ttlMs: number): number; export declare function cleanupUserDownloads(userId: string): number; export declare function startCleanupInterval(ttlMs: number, intervalMs?: number): NodeJS.Timeout; export declare function stopCleanupInterval(): void; //# sourceMappingURL=download.d.ts.map