/** * Detect a rough project type from common manifest files. * Returns a label like "typescript", "rust", "python", "go", or "generic". */ export declare function detectProjectType(cwd: string): string; /** * Build project context for the starter rules file. * Caps total context at 8000 characters. */ export declare function buildProjectContext(cwd: string): string; /** * Generate a starter pi-warden.md file. * Returns the content; does not write it. */ export declare function generateStarterRules(cwd: string): string; /** * Build a ready-to-paste prompt for the model to generate pi-warden.md. * Includes extracted project context and standard safety rules as a foundation. */ export declare function buildInitPrompt(cwd: string): string; /** * Result of an /warden init attempt. */ export interface InitResult { /** Whether a pi-warden.md already existed. */ alreadyExists: boolean; /** The path that was written (or would be overwritten). */ path: string; /** The content written. */ content: string; } /** * Write a starter pi-warden.md to the project root. * If it already exists, returns alreadyExists: true without writing. */ export declare function writeStarterRules(cwd: string, overwrite?: boolean): InitResult;