import type { InputConfig } from "../../config.js"; import type { SkottInstance, SkottStructure } from "../../skott.js"; export interface ApiResponses { cycles: string[][]; structure: SkottStructure & { entrypoint: string | "none"; cycles: string[][]; }; meta: { granularity: "module" | "group"; }; } /** * Renders skott web application using the api and application configurations. * skott's manages its own lifecycle and internals will automatically be used by * the rendering process to generate all the data source information then consumed * by the web client. * * @param apiConfig Configuration that will be used by skott's internals to generate * the whole data source consumed by the web client. This is equivalent to the * runtime configuration accepted by skott entrypoint module. * * @param applicationConfig Application configuration used by the web application * that will be rendered. */ export declare function renderWebApplication(apiConfig: InputConfig, applicationConfig: { port: number; open: boolean; visualization: { granularity: "module" | "group"; }; watch: boolean; onListen?: (port: number) => void; onOpenError?: (error: Error) => void; }): Promise; /** * Renders a standalone skott web application using an arbitrary function that * returns a SkottInstance interface. This is useful when generating skott-like * information from plugins that need additional context to generate the graph, * while waiting for skott to allow such behavior directly from its runtime config. * * @param fromInstance Factory function returning a SkottInstance interface that * will be used as the data source for the web application. As long as the interface * is compatible with the SkottInstance interface, the web client will work as expected. * * @param applicationConfig Application configuration used by the web application * that will be rendered. */ export declare function renderStandaloneWebApplication(fromInstance: () => Promise>, applicationConfig: { port: number; open: boolean; visualization: { granularity: "module" | "group"; }; watch: { cwd: string; ignorePatterns: string[]; fileExtensions: string[]; verbose: boolean; }; onListen?: (port: number) => void; onOpenError?: (error: Error) => void; }): Promise;