export interface DiagramOptions { /** Strapi's and other plugins' content types. */ foreign: boolean; /** Components and dynamic zones. */ components: boolean; /** `createdAt` and the rest of Strapi's bookkeeping. */ defaultFields: boolean; /** Top-to-bottom, or left-to-right. */ direction: 'TB' | 'LR'; exclude: string[]; } export declare const DEFAULT_OPTIONS: DiagramOptions; export interface DiagramResponse { svg: string; width: number; height: number; counts: { nodes: number; edges: number; components: number; }; } export interface CatalogueEntry { uid: string; label: string; kind: string; } export declare const routes: { diagram: string; contentTypes: string; }; /** The options as the server's query string expects them. */ export declare const toParams: (options: DiagramOptions) => Record; /** * The toolbar state, kept across visits. * * "Persist arrangement" is one of the open requests on both of the abandoned * plugins this replaces. Re-picking the same four toggles on every visit is the * kind of small friction that stops people using a tool they otherwise like. */ export declare const loadOptions: () => DiagramOptions; export declare const saveOptions: (options: DiagramOptions) => void; /** * Hands the browser the SVG already on screen. * * Deliberately not a link to the server's download route: an admin route needs * the session's Authorization header, which a plain navigation cannot send. The * string is already here, and it is the same string the server would return. */ export declare const downloadSvg: (svg: string, filename?: string) => void;