import { type AgentWorkContract, type AgentWorkContractStore } from "../../schema-kernel/agent-work-contract.schema.js"; /** * Get the dedicated agent work contracts store path for a project root. * * @param projectRoot - Trusted project root. * @returns Absolute path to `.hivemind/state/agent-work-contracts.json`. */ export declare function getAgentWorkContractsFilePath(projectRoot: string): string; /** * Read the durable agent work contract store from disk. * * @param projectRoot - Trusted project root. * @returns Deep-cloned store state. */ export declare function readAgentWorkContracts(projectRoot: string): AgentWorkContractStore; /** * Persist a complete agent work contract store atomically. * * @param projectRoot - Trusted project root. * @param store - Store payload to persist. */ export declare function persistAgentWorkContracts(projectRoot: string, store: AgentWorkContractStore): void; /** * Upsert a single contract into the dedicated contract store. * * @param projectRoot - Trusted project root. * @param contract - Contract to persist. * @returns Deep-cloned persisted contract. */ export declare function upsertAgentWorkContract(projectRoot: string, contract: AgentWorkContract): AgentWorkContract; /** * Fetch one contract by ID. * * @param projectRoot - Trusted project root. * @param contractId - Contract ID to read. * @returns Deep-cloned contract when present. */ export declare function getAgentWorkContract(projectRoot: string, contractId: string): AgentWorkContract | undefined; /** * Find the first active contract for a given agent name. * * An active contract has status "running". Returns undefined when no * matching contract is found (per D-26: no contract = no restriction). * * @param projectRoot - Trusted project root. * @param agentName - Agent name to match. * @returns Deep-cloned contract or undefined. */ export declare function getActiveContractByAgent(projectRoot: string, agentName: string): AgentWorkContract | undefined; //# sourceMappingURL=store.d.ts.map