UNPKG

@posthog/wizard

Version:

The PostHog wizard helps you to configure your project

33 lines (32 loc) 1.56 kB
import type { CloudRegion, FileChange, WizardOptions } from './types'; import { Integration } from '../lib/constants'; export declare const GLOBAL_IGNORE_PATTERN: string[]; export declare function getAllFilesInProject(dir: string): Promise<string[]>; export declare function getDotGitignore({ installDir, }: Pick<WizardOptions, 'installDir'>): string | undefined; export declare function updateFile(change: FileChange, { installDir }: Pick<WizardOptions, 'installDir'>): Promise<void>; export declare function getFilesToChange({ integration, relevantFiles, documentation, accessToken, cloudRegion, projectId, }: { integration: Integration; relevantFiles: string[]; documentation: string; accessToken: string; cloudRegion: CloudRegion; projectId: number; }): Promise<string[]>; export declare function generateFileContent({ prompt, accessToken, cloudRegion, projectId, }: { prompt: string; accessToken: string; cloudRegion: CloudRegion; projectId: number; }): Promise<string>; export declare function generateFileChangesForIntegration({ integration, filesToChange, accessToken, documentation, installDir, cloudRegion, projectId, }: { integration: Integration; filesToChange: string[]; accessToken: string; documentation: string; installDir: string; cloudRegion: CloudRegion; projectId: number; }): Promise<FileChange[]>; export declare function getRelevantFilesForIntegration({ installDir, integration, }: Pick<WizardOptions, 'installDir'> & { integration: Integration; }): Promise<string[]>;