import { type RunJournalOption, type StorageSelection, type StorageSettingsSelection } from "@bastani/atomic/storage"; import type { RunJournal } from "./types.js"; export type { RunJournalOption }; export interface RunJournalSettings { workflows?: string[] | { journal?: StorageSettingsSelection; localWorkers?: import("../../workers/public-options.js").LocalWorkerOptions; admission?: import("../../workers/public-options.js").WorkflowAdmissionOptions; }; storage?: StorageSettingsSelection; } export interface RunJournalResolutionOptions { journal?: RunJournalOption; settings?: RunJournalSettings; /** The agent directory the owning session resolved its storage against; defaults to `getAgentDir()`. */ agentDir?: string; } export declare function selectRunJournal(options?: RunJournalResolutionOptions): StorageSelection | RunJournal; export declare function resolveRunJournal(options?: RunJournalResolutionOptions): Promise; export declare function openSelectedRunJournal(selection: StorageSelection | RunJournal, agentDir?: string): Promise; export declare function withRunJournalConfigSource(selection: StorageSelection | RunJournal, open: () => Promise): Promise;