import * as _kb_labs_shared_command_kit from '@kb-labs/shared-command-kit';
import { RestInput } from '@kb-labs/sdk';

/**
 * POST /generate handler
 *
 * Generates a new commit plan for the given scope.
 * Uses LLM to analyze changes and group into conventional commits.
 */
declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<unknown, {
    scope: string;
    dryRun: boolean;
    allowSecrets: boolean;
    autoConfirm: boolean;
}, unknown>, {
    scope: string;
    success: boolean;
    secretsDetected: boolean;
    message?: string | undefined;
    plan?: {
        schemaVersion: "1.0";
        createdAt: string;
        repoRoot: string;
        gitStatus: {
            staged: string[];
            unstaged: string[];
            untracked: string[];
        };
        commits: {
            message: string;
            type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
            id: string;
            files: string[];
            releaseHint: "minor" | "none" | "patch" | "major";
            breaking: boolean;
            scope?: string | undefined;
            body?: string | undefined;
            reasoning?: {
                newBehavior: boolean;
                fixesBug: boolean;
                internalOnly: boolean;
                explanation: string;
                confidence: number;
            } | undefined;
        }[];
        metadata: {
            totalFiles: number;
            totalCommits: number;
            llmUsed: boolean;
            tokensUsed?: number | undefined;
            escalated?: boolean | undefined;
        };
    } | undefined;
    planPath?: string | undefined;
    secrets?: {
        file: string;
        type: string;
        line: number;
        column: number;
        pattern: string;
        matched: string;
        context: string;
    }[] | undefined;
}>;

export { _default as default };
