userpravah
Version:
UserPravah is an extensible, framework-agnostic tool for analyzing user flows and navigation patterns in web applications. It supports multiple frameworks (Angular, React) and output formats (DOT/Graphviz, JSON) with a plugin-based architecture for easy e
37 lines (36 loc) • 981 B
TypeScript
import { AnalysisResult } from "./types.js";
export interface OutputGenerationOptions {
outputDirectory: string;
filename?: string;
generateImage?: boolean;
theme?: string;
layout?: string;
[key: string]: any;
}
export interface GeneratedOutput {
filePath: string;
format: string;
additionalFiles?: string[];
}
export interface IOutputGenerator {
/**
* Gets the name/format of this output generator
*/
getFormatName(): string;
/**
* Gets the file extension for the primary output
*/
getFileExtension(): string;
/**
* Gets supported options for this output format
*/
getSupportedOptions(): string[];
/**
* Generates output from the analysis result
*/
generate(analysisResult: AnalysisResult, options: OutputGenerationOptions): Promise<GeneratedOutput>;
/**
* Validates the provided options
*/
validateOptions(options: OutputGenerationOptions): string[];
}