import type { Logger } from '@budarin/pluggable-serviceworker'; import type { FolderName, OpfsKey, UrlString } from './types.js'; export declare function getGlobalMaxCacheFraction(): number; export declare function setGlobalMaxCacheFraction(fraction: number): void; export declare function resetFolderRegistryForTests(): void; export interface OpfsConfigOptions { maxCacheFraction?: number; } export declare function registerFolderConfig(folderName: FolderName): void; export declare function getRegisteredFolderNames(): FolderName[]; export declare const OPFS_PLUGIN_ROOT_DIR_NAME = ".opfs-serve-range"; export declare function getRoot(): Promise; export declare function getPluginRoot(): Promise; export declare function getFlatStoreDir(): Promise; export declare function isOpfsAvailable(): boolean; export declare function getMaxCacheFraction(): number; export declare function matchesGlob(url: UrlString, pattern: string, base?: string): boolean; export declare function isEvictable(url: UrlString, pinned?: string[]): boolean; export declare function shouldProcessFile(url: UrlString, include?: string[], exclude?: string[]): boolean; export declare function invalidateAllCachesAndPluginRoot(): void; export declare function getOpfsDir(_root: FileSystemDirectoryHandle, _create: boolean, _folderName: FolderName): Promise; export declare function invalidateCachesForFileKeyOnError(dir: FileSystemDirectoryHandle, folderName: FolderName, key: OpfsKey): Promise; export declare function invalidateAllCachesForFolder(folderName: FolderName): void; export declare function clearOpfsCache(folderName: FolderName): Promise; export interface NormalizePatternListDropped { crossOrigin: string[]; invalid: string[]; } export declare function normalizePatternList(patterns: string[] | undefined, baseOrigin: string): { list: string[] | undefined; dropped: NormalizePatternListDropped; }; export declare function emitDroppedPatternWarnings(dropped: NormalizePatternListDropped, logger: Logger): void;