import type { Client } from '@libsql/client';
import type { WgOp } from './types.js';
/** Deterministic edge identity (beads #4259); unit-separated; `type` intentionally excluded. */
export declare const edgeKey: (fromId: string, toId: string) => string;
/** Content-addressed op id over a canonical payload; lamport keeps distinct emits distinct. */
export declare const makeOpId: (type: string, payload: unknown, lamport: number) => string;
/**
 * Fold one op into the `wg_issues`/`wg_edges` projection. Deterministic given op order; safe to
 * replay (idempotent for edges; LWW for issue fields via `wg_issues.lww`).
 */
export declare function applyOp(client: Client, op: WgOp): Promise<void>;
//# sourceMappingURL=events.d.ts.map