/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import { JsonSchema } from "@workglow/util/schema"; import { IKvStorage } from "./IKvStorage"; import { KvStorage } from "./KvStorage"; export declare const FS_FOLDER_KV_REPOSITORY: import("@workglow/util").ServiceToken>; /** * Key-value repository that stores each value as a file in a folder, using * a caller-supplied `pathWriter` to map keys to relative paths. */ export declare class FsFolderKvStorage extends KvStorage { folderPath: string; pathWriter: (key: Key) => string; constructor(folderPath: string, pathWriter: (key: Key) => string, keySchema?: JsonSchema, valueSchema?: JsonSchema); private setupDirectory; put(key: Key, value: Value): Promise; putBulk(items: Array<{ key: Key; value: Value; }>): Promise; /** Parallel single-file reads; missing keys are dropped from the result. */ getBulk(keys: readonly Key[]): Promise; get(key: Key): Promise; delete(key: Key): Promise; getAll(): Promise; deleteAll(): Promise; size(): Promise; } //# sourceMappingURL=FsFolderKvStorage.d.ts.map