| 1 | /** |
| 2 | * Declares the wa-sqlite IndexedDB batch-atomic VFS example module. |
| 3 | * |
| 4 | * @since 4.0.0 |
| 5 | */ |
| 6 | declare module "@effect/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" { |
| 7 | /** |
| 8 | * IndexedDB-backed wa-sqlite virtual file system that batches writes and |
| 9 | * commits them atomically. |
| 10 | * |
| 11 | * @category models |
| 12 | * @since 4.0.0 |
| 13 | */ |
| 14 | // oxlint-disable-next-line @typescript-eslint/no-extraneous-class |
| 15 | export class IDBBatchAtomicVFS { |
| 16 | /** |
| 17 | * Creates a batch-atomic IndexedDB VFS registered under `name` for the |
| 18 | * provided wa-sqlite module. The optional `options` value is forwarded to |
| 19 | * the upstream VFS implementation. |
| 20 | */ |
| 21 | static async create(name: string, module: any, options?: any): Promise<any> |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Declares the wa-sqlite OPFS access-handle pool VFS example module. |
| 27 | * |
| 28 | * @since 4.0.0 |
| 29 | */ |
| 30 | declare module "@effect/wa-sqlite/src/examples/AccessHandlePoolVFS.js" { |
| 31 | /** |
| 32 | * OPFS-backed wa-sqlite virtual file system that pools file-system access |
| 33 | * handles for persistent browser storage. |
| 34 | * |
| 35 | * @category models |
| 36 | * @since 4.0.0 |
| 37 | */ |
| 38 | // oxlint-disable-next-line @typescript-eslint/no-extraneous-class |
| 39 | export class AccessHandlePoolVFS { |
| 40 | /** |
| 41 | * Creates an OPFS access-handle pool VFS registered under `name` for the |
| 42 | * provided wa-sqlite module. The optional `options` value is forwarded to |
| 43 | * the upstream VFS implementation. |
| 44 | */ |
| 45 | static async create(name: string, module: any, options?: any): Promise<any> |
| 46 | } |
| 47 | } |