mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
69 lines • 2.6 kB
TypeScript
import { z } from "zod";
/**
* Validation result for diagram syntax.
*/
export type ValidationResult = {
valid: boolean;
error?: string;
skipped?: boolean;
};
/**
* Mermaid parse function type.
*/
export type MermaidParseLike = (code: string) => unknown | Promise<unknown>;
/**
* Mermaid module provider function type.
*/
export type MermaidModuleProvider = () => unknown | Promise<unknown>;
/**
* Mermaid diagram input schema.
* Validates all input parameters for diagram generation.
*/
export declare const MermaidDiagramSchema: z.ZodObject<{
description: z.ZodString;
diagramType: z.ZodEnum<["flowchart", "sequence", "class", "state", "gantt", "pie", "er", "journey", "quadrant", "git-graph", "mindmap", "timeline"]>;
theme: z.ZodOptional<z.ZodString>;
strict: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
repair: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
accTitle: z.ZodOptional<z.ZodString>;
accDescr: z.ZodOptional<z.ZodString>;
direction: z.ZodOptional<z.ZodEnum<["TD", "TB", "BT", "LR", "RL"]>>;
customStyles: z.ZodOptional<z.ZodString>;
advancedFeatures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
description: string;
strict: boolean;
diagramType: "state" | "mindmap" | "flowchart" | "sequence" | "timeline" | "class" | "er" | "gantt" | "git-graph" | "journey" | "pie" | "quadrant";
repair: boolean;
direction?: "TD" | "TB" | "BT" | "LR" | "RL" | undefined;
theme?: string | undefined;
accTitle?: string | undefined;
accDescr?: string | undefined;
customStyles?: string | undefined;
advancedFeatures?: Record<string, unknown> | undefined;
}, {
description: string;
diagramType: "state" | "mindmap" | "flowchart" | "sequence" | "timeline" | "class" | "er" | "gantt" | "git-graph" | "journey" | "pie" | "quadrant";
strict?: boolean | undefined;
direction?: "TD" | "TB" | "BT" | "LR" | "RL" | undefined;
theme?: string | undefined;
repair?: boolean | undefined;
accTitle?: string | undefined;
accDescr?: string | undefined;
customStyles?: string | undefined;
advancedFeatures?: Record<string, unknown> | undefined;
}>;
/**
* Inferred TypeScript type from Mermaid diagram schema.
*/
export type MermaidDiagramInput = z.infer<typeof MermaidDiagramSchema>;
/**
* Configuration for diagram generation.
*/
export interface DiagramConfig {
description: string;
theme?: string;
direction?: "TD" | "TB" | "BT" | "LR" | "RL";
advancedFeatures?: Record<string, unknown>;
}
//# sourceMappingURL=types.d.ts.map