export const CACHE_VERSION: number; export type CompactRecord = { uploadDate: unknown; duration: unknown; title: unknown; platform: unknown; source: unknown; j: string | null; a: unknown[] | null; b: unknown[] | null; }; export type ChannelCache = { changed: boolean; read(id: string): Promise<{ r: CompactRecord | null; line: string | null }>; keep(id: string, line: string | null): Promise; close(): Promise; abort(): Promise; }; export function compactRecord(d: unknown): CompactRecord; export function textsOf(r: CompactRecord | null): string[]; export function readCompact(channelsDir: string, slug: string, id: string): Promise; export function cacheRoot(cacheDir: string, channelsDir: string): string; export function openChannelCache(cacheDir: string, channelsDir: string, slug: string, ids: string[]): Promise;