import type { InboxFileMeta } from '../../shared/inbox.js'; import type { DownloadableSlackFile } from './slack.helper.js'; export declare const MANUAL_FETCH_BYTES: number; interface DownloadSlackFileInput { token: string; urlPrivate: string; destPath: string; maxBytes: number; fetchImpl?: typeof fetch; } export declare function downloadSlackFile(input: DownloadSlackFileInput): Promise<{ sizeBytes: number; }>; export type CachedSlackFile = InboxFileMeta & { localPath: string; }; export interface SlackCachedFileRead { bytes: Buffer; contentType: string; filename: string; sizeBytes: number; } export declare class SlackFileService { findCachedFile(input: { teamId: string; fileId: string; }): Promise; readCachedFile(input: { teamId: string; fileId: string; }): Promise; downloadToCache(input: { file: DownloadableSlackFile; teamId: string; token: string; }): Promise; } export declare function cachedSlackFilePath(input: { teamId: string; fileId: string; name: string; }): string; export declare const defaultSlackFileService: SlackFileService; export {}; //# sourceMappingURL=slack-file.service.d.ts.map