/**
 * ProvenanceController — patch lookups, slice materialization,
 * backward causal cone computation, and causal sorting.
 *
 * Extracted from provenance.methods.js.
 *
 * @module domain/services/controllers/ProvenanceController
 */
import { type WarpState } from '../JoinReducer.ts';
import type Patch from '../../types/Patch.ts';
import type { TickReceipt } from '../../types/TickReceipt.ts';
import type { ProvenanceReadHost } from './ReadGraphHost.ts';
type ProvenanceHost = ProvenanceReadHost;
export default class ProvenanceController {
    _host: ProvenanceHost;
    constructor(host: ProvenanceHost);
    patchesFor(entityId: string): Promise<string[]>;
    materializeSlice(nodeId: string, options?: {
        receipts?: boolean;
    }): Promise<{
        state: WarpState;
        patchCount: number;
        receipts?: TickReceipt[];
    }>;
    _computeBackwardCone(nodeId: string): Promise<Map<string, Patch>>;
    loadPatchBySha(sha: string): Promise<Patch>;
    _loadPatchBySha(sha: string): Promise<Patch>;
    _loadPatchesBySha(shas: string[]): Promise<Array<{
        patch: Patch;
        sha: string;
    }>>;
    _sortPatchesCausally(patches: Array<{
        patch: Patch;
        sha: string;
    }>): Array<{
        patch: Patch;
        sha: string;
    }>;
}
export {};
