import type { PlanningEvent, PlanningError } from '../planner';
export type MermaidOpts = {
    meta: boolean;
};
/**
 * Return a trace function that generates
 * a mermaid graph
 */
export declare function mermaid({ meta }?: Partial<MermaidOpts>): ((e: PlanningEvent<any> | PlanningError) => void) & {
    /**
     * Generate a mermaid diagram from the planning trace
     */
    render(): string;
    /**
     * Return the metadata associated with the diagram.
     *
     * The metadata is a record that maps each node to the event
     * the node represents.
     */
    metadata(): Record<string, PlanningError | PlanningEvent<any>>;
};
