@posthog/wizard
Version:
The PostHog wizard helps you to configure your project
39 lines (38 loc) • 1.54 kB
TypeScript
import type { WizardOptions } from '../utils/types';
export declare enum LaravelProjectType {
STANDARD = "standard",// Basic Laravel app
INERTIA = "inertia",// Inertia.js (Vue/React SPA) - may need JS SDK too
LIVEWIRE = "livewire"
}
/**
* Get Laravel version bucket for analytics
*/
export declare function getLaravelVersionBucket(version: string | undefined): string;
/**
* Read and parse composer.json
*/
export declare function getComposerJson(options: Pick<WizardOptions, 'installDir'>): Record<string, any> | undefined;
/**
* Get Laravel version from composer.json
*/
export declare function getLaravelVersion(options: Pick<WizardOptions, 'installDir'>): string | undefined;
/**
* Get human-readable name for Laravel project type
*/
export declare function getLaravelProjectTypeName(projectType: LaravelProjectType): string;
/**
* Detect Laravel project type
*/
export declare function getLaravelProjectType(options: WizardOptions): Promise<LaravelProjectType>;
/**
* Find the main service provider file
*/
export declare function findLaravelServiceProvider(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>;
/**
* Find the bootstrap file (differs between Laravel versions)
*/
export declare function findLaravelBootstrapFile(options: Pick<WizardOptions, 'installDir'>): string | undefined;
/**
* Detect Laravel version structure for configuration guidance
*/
export declare function detectLaravelStructure(options: Pick<WizardOptions, 'installDir'>): 'legacy' | 'modern' | 'latest';