import type { WarpGraphInstance, WriterTickInfo } from './types.ts';
/**
 * Converts a per-writer Map to a plain object for JSON serialization.
 */
export declare function serializePerWriter(perWriter: Map<string, WriterTickInfo>): Record<string, WriterTickInfo>;
/**
 * Counts how many of a writer's patches have tick <= the given tick.
 */
export declare function countWriterPatchesAtTick(tick: number, info: WriterTickInfo): number;
/**
 * Counts total patches across all writers at or before the given tick.
 */
export declare function countPatchesAtTick(tick: number, perWriter: Map<string, WriterTickInfo>): number;
/**
 * Computes a SHA-256 hash of the writer tip SHAs for frontier identity.
 */
export declare function computeFrontierHash(perWriter: Map<string, WriterTickInfo>): Promise<string>;
/**
 * Builds a receipt mapping each writer to its patch SHA and op summary at a given tick.
 */
export declare function buildTickReceipt({ tick, perWriter, graph }: {
    tick: number;
    perWriter: Map<string, WriterTickInfo>;
    graph: WarpGraphInstance;
}): Promise<Record<string, {
    sha: string;
    opSummary: unknown;
}> | null>;
