UNPKG

audio.libx.js

Version:

Comprehensive audio library with progressive streaming, recording capabilities, real-time processing, and intelligent caching for web applications

43 lines 1.31 kB
import { CacheStats } from './types.js'; export declare class AudioCache { private _db; private _dbName; private _storeName; private _version; private _memoryCache; private _initPromise; private _stats; private _accessCounts; private _totalAccesses; private _cacheHits; constructor(dbName?: string, storeName?: string); initialize(): Promise<void>; private _performInitialization; private _openDatabase; private _createObjectStore; private _setupErrorHandling; private _loadMemoryCache; private _getAllEntries; set(id: string, chunks: Uint8Array[], mimeType: string): Promise<void>; private _storeEntry; get(id: string): Promise<Uint8Array[] | null>; private _getEntry; has(id: string): Promise<boolean>; delete(id: string): Promise<boolean>; private _deleteEntry; clear(): Promise<void>; private _clearStore; keys(): Promise<string[]>; getStats(): Promise<CacheStats>; private _updateStats; private _updateStorageStats; private _incrementAccessCount; private _updateHitRatio; cleanup(options?: { maxAge?: number; maxEntries?: number; minAccessCount?: number; }): Promise<number>; close(): void; } //# sourceMappingURL=AudioCache.d.ts.map