@wllama/wllama
Version:
WebAssembly binding for llama.cpp - Enabling on-browser LLM inference
13 lines (12 loc) • 409 B
TypeScript
import type { StorageBackend } from './index';
export declare class OPFSBackend implements StorageBackend {
isSupported(): boolean;
read(key: string): Promise<Blob | null>;
write(key: string, stream: ReadableStream): Promise<void>;
getSize(key: string): Promise<number>;
list(): Promise<Array<{
key: string;
size: number;
}>>;
delete(key: string): Promise<void>;
}