import os from "node:os";
import { createJobRegistry } from "./jobs.js";
import { createTemplateRegistry } from "./templates.js";
export async function loadStateManager(homeDir = os.homedir()) {
    return {
        templates: createTemplateRegistry(homeDir),
        jobs: createJobRegistry(homeDir)
    };
}
export function createStateManager(homeDir, fs) {
    return {
        templates: createTemplateRegistry(homeDir, fs),
        jobs: createJobRegistry(homeDir, fs)
    };
}
export { createJobRegistry } from "./jobs.js";
export { createTemplateRegistry } from "./templates.js";
