/** * Setting that controls the auto-commit behaviour. * * - `false`: disabled. * - `true`: create lightweight checkpoint commits at the end of each turn * that modifies files, then reorganise those checkpoints into logical * Conventional Commits at `agent_end`. */ export type CommitEveryTurnConfig = boolean; /** * Normalised, resolved auto-commit configuration. */ export interface ResolvedCommitEveryTurnConfig { /** Whether auto-commit is enabled. */ enabled: boolean; } /** * Language configuration for commit messages. */ export interface PiGitConfig { /** Language for the commit message (subject and body). `"ja"` → Japanese, anything else → English */ lang: string; /** When `true`, the commit message is generated without a body (subject-only). */ noBody?: boolean; /** Controls automatic commit behaviour. See {@link CommitEveryTurnConfig}. */ commitEveryTurn?: CommitEveryTurnConfig; } /** * Load `.pi/pi-git.json` from the project root. * * Returns default config (English body) when the file is missing or unreadable. */ export declare function loadConfig(cwd: string): PiGitConfig; /** * Resolve the raw `commitEveryTurn` config value into a normalised form. */ export declare function resolveCommitEveryTurnConfig(value: CommitEveryTurnConfig | undefined): ResolvedCommitEveryTurnConfig; /** * Returns `true` when the commit message should be written in Japanese. */ export declare function isJapanese(config: PiGitConfig): boolean; /** * Returns `true` when the commit message should omit the body. */ export declare function hasNoBody(config: PiGitConfig): boolean; //# sourceMappingURL=config.d.ts.map