donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
20 lines • 953 B
TypeScript
import type { EnvPersistence } from './EnvPersistence';
/**
* In-memory implementation of {@link EnvPersistence}.
*
* Used as the `"RAM"` persistence layer. When created with an initial data
* snapshot (e.g. a subset of `process.env` captured at startup), it bridges
* host-process environment variables into the Donobu flow environment system
* so that flows can access them without a durable store.
*
* Also useful in tests where no database or cloud backend is needed.
*/
export declare class EnvPersistenceVolatile implements EnvPersistence {
private readonly environmentData;
constructor(initialData?: Record<string, string>);
setEnvironmentDatum(key: string, value: string): Promise<void>;
deleteEnvironmentDatum(key: string): Promise<void>;
getEnvironmentDatum(key: string): Promise<string | undefined>;
getEnvironmentData(): Promise<Record<string, string>>;
}
//# sourceMappingURL=EnvPersistenceVolatile.d.ts.map