import { type AttributedReadToolName } from "./workspace-read-observation.js"; import type { PersistedLocalActivityWindow, PersistedLocalHistoryStore, RepoConcurrencySummary, PersistedLocalHistorySummary, PersistedLocalHistoryContext } from "./persisted-local-history.js"; import type { PersistedLocalHistoryGraphContext } from "./persisted-local-history-graph.js"; import type { RepoObservation } from "./repo-state.js"; import type { RuntimeCausalContext } from "./runtime-causal-context.js"; import type { WorkspaceExecutionContext, WorkspaceStatus } from "./workspace-router-model.js"; import type { JsonObject } from "../contracts/json-object.js"; import type { BoundWorkspace } from "./workspace-router-runtime.js"; export declare const UNBOUND_PERSISTED_LOCAL_HISTORY_SUMMARY: PersistedLocalHistorySummary; export declare const UNBOUND_PERSISTED_LOCAL_ACTIVITY_WINDOW: Readonly<{ historyPath: null; totalMatchingItems: 0; truncated: false; items: readonly never[]; }>; /** * Retrieve the persisted local history summary for a bound workspace, * including side-effect observations for semantic transitions and staged targets. */ export declare function queryPersistedLocalHistorySummary(input: { readonly persistedLocalHistory: PersistedLocalHistoryStore; readonly binding: BoundWorkspace; readonly status: WorkspaceStatus; readonly buildCausalContext: (binding: BoundWorkspace, observation: { readonly checkoutEpoch: number; }) => RuntimeCausalContext; readonly buildHistoryContext: (binding: BoundWorkspace, observation: RepoObservation) => PersistedLocalHistoryContext; readonly buildGraphContext: (binding: BoundWorkspace) => Promise; }): Promise; /** * Retrieve the repo concurrency summary for a bound workspace. */ export declare function queryRepoConcurrencySummary(input: { readonly persistedLocalHistory: PersistedLocalHistoryStore; readonly status: WorkspaceStatus; readonly buildGraphContext: (binding: BoundWorkspace) => Promise; readonly binding: BoundWorkspace; }): Promise; /** * Retrieve the persisted local activity window for a bound workspace. */ export declare function queryPersistedLocalActivityWindow(input: { readonly persistedLocalHistory: PersistedLocalHistoryStore; readonly binding: BoundWorkspace; readonly status: WorkspaceStatus; readonly limit: number; readonly buildCausalContext: (binding: BoundWorkspace, observation: { readonly checkoutEpoch: number; }) => RuntimeCausalContext; readonly buildGraphContext: (binding: BoundWorkspace) => Promise; readonly refreshSummary: () => Promise; }): Promise; /** * Record a read observation against persisted local history. */ export declare function noteReadObservation(input: { readonly persistedLocalHistory: PersistedLocalHistoryStore; readonly execution: WorkspaceExecutionContext; readonly toolName: AttributedReadToolName; readonly args: JsonObject; readonly result: JsonObject; readonly buildHistoryContextFromExecution: (execution: WorkspaceExecutionContext, observation: RepoObservation) => PersistedLocalHistoryContext; readonly buildGraphContextFromExecution: (execution: WorkspaceExecutionContext) => Promise; }): Promise; //# sourceMappingURL=workspace-router-history.d.ts.map