import { z } from 'zod';
export const NativeReviewEngineIdSchema = z.enum(['coderabbit']);
export const NativeReviewEngineSpecSchema = z
    .object({
    id: NativeReviewEngineIdSchema,
    title: z.string().min(1),
})
    .strict();
const NATIVE_REVIEW_ENGINES = Object.freeze([
    { id: 'coderabbit', title: 'CodeRabbit' },
]);
export function listNativeReviewEngines() {
    return NATIVE_REVIEW_ENGINES;
}
export function getNativeReviewEngine(id) {
    const key = String(id ?? '').trim();
    if (!key)
        return null;
    return NATIVE_REVIEW_ENGINES.find((e) => e.id === key) ?? null;
}
//# sourceMappingURL=reviewEngines.js.map