@keadex/mina-react
Version:
React library to render C4 Model diagrams created with Keadex Mina.
18 lines (17 loc) • 794 B
TypeScript
import { Diagram, DiagramsThemeSettings } from '@keadex/c4-model-ui-kit';
export declare function fetchGhRawFile(url: string, ghToken?: string): Promise<Response>;
export declare function downloadDiagramData(projectRootUrl: string, diagramUrl: string, ghToken?: string): Promise<{
projectSettingsJson: string;
plantuml: string;
spec: string;
} | undefined>;
export declare function openRemoteProjectDiagram(projectRootUrl: string, diagramUrl: string, ghToken?: string): Promise<{
diagram: Diagram;
diagramsThemeSettings?: DiagramsThemeSettings;
} | undefined>;
declare const _default: {
fetchGhRawFile: typeof fetchGhRawFile;
downloadDiagramData: typeof downloadDiagramData;
openRemoteProjectDiagram: typeof openRemoteProjectDiagram;
};
export default _default;