import { type Action, type Graph, type Link } from 'graph/types.js';
import { type KeysetWithSecrets } from 'keyset/index.js';
export declare const getPayloads: (sequence: Array>) => string;
export declare const findByPayload: (graph: Graph, payload: XAction["payload"]) => Link;
export declare const byPayload: (a: Link, b: Link) => 0 | 1 | -1;
export declare const buildGraph: (type: string) => Graph>;
export type XAction = Action | {
type: 'X';
payload: string;
};
export type XLink = Link>;
export declare const appendLink: (graph: Graph>, payload: string, keys: KeysetWithSecrets) => Graph>;
export declare const trim: (s: string) => string;
//# sourceMappingURL=graph.d.ts.map