UNPKG

@posthog/wizard

Version:

The PostHog wizard helps you to configure your project

29 lines (28 loc) 1.07 kB
import type { WizardOptions } from '../utils/types'; export declare enum FlaskProjectType { STANDARD = "standard",// Basic Flask app RESTFUL = "restful",// Flask-RESTful API RESTX = "restx",// Flask-RESTX (Swagger docs) SMOREST = "smorest",// flask-smorest (OpenAPI) BLUEPRINT = "blueprint" } /** * Get Flask version bucket for analytics */ export declare function getFlaskVersionBucket(version: string | undefined): string; /** * Extract Flask version from requirements files or pyproject.toml */ export declare function getFlaskVersion(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>; /** * Detect Flask project type */ export declare function getFlaskProjectType(options: WizardOptions): Promise<FlaskProjectType>; /** * Get human-readable name for Flask project type */ export declare function getFlaskProjectTypeName(projectType: FlaskProjectType): string; /** * Find the main Flask app file */ export declare function findFlaskAppFile(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>;