import type { PortableState } from "./portable-state.ts"; /** Profiles are loaded by value: their graph IDs must not alias an existing session graph. */ export declare function forkPortableState(original: PortableState): PortableState; export declare function remapPortableState(original: PortableState, identity: (index: number) => string): PortableState; /** Roots containing checkpoint identities must be initialised after reconstruction. */ export declare function checkpointRoots(state: PortableState): string[]; /** Three-way merge is synchronous; the client persists before publishing this candidate. */ export declare function mergeState(start: PortableState, current: PortableState, candidate: PortableState): { state: PortableState; conflicts: string[]; }; export declare function ownersOfNode(state: PortableState, target: string): string[]; export declare function compactState(state: PortableState): PortableState;