import { ConfigService } from '@nestjs/config';
import { CatalogService } from '../catalogo/catalog.service';
import { PrismaService } from '../database/prisma.service';
import { type ProvedorIa } from '../ia/provedor-ia';
import { QuotaService } from '../perguntas/quota.service';
export declare class AnalysisService {
    private readonly prisma;
    private readonly config;
    private readonly catalog;
    private readonly quota;
    private readonly provider;
    constructor(prisma: PrismaService, config: ConfigService, catalog: CatalogService, quota: QuotaService, provider: ProvedorIa);
    generate(publicId: string, sessionJourneyId: string): Promise<{
        generationStatus: "AVAILABLE";
        generationMode: "DEMO" | "GEMINI";
        summary: string;
        stages: {
            stepNumber: 1 | 5 | 2 | 3 | 4;
            stageName: "Circunstância percebida" | "História" | "Condicionamentos" | "Consciência" | "Escolha consciente";
            groundedFacts: string[];
            participantAssociations: string[];
            reflectivePossibilities: string[];
            openQuestions: string[];
            synthesis: string;
        }[];
        sequenceSynthesis: string;
        possibleConnections: string[];
        uncertainties: string[];
        nextReflections: string[];
        safety: {
            requiresPause: boolean;
            requiresProfessionalReview: boolean;
            reason: string;
        };
        notice: string;
    }>;
    get(publicId: string, sessionJourneyId: string): Promise<{
        generationStatus: "AVAILABLE";
        generationMode: "DEMO" | "GEMINI";
        summary: string;
        stages: {
            stepNumber: 1 | 5 | 2 | 3 | 4;
            stageName: "Circunstância percebida" | "História" | "Condicionamentos" | "Consciência" | "Escolha consciente";
            groundedFacts: string[];
            participantAssociations: string[];
            reflectivePossibilities: string[];
            openQuestions: string[];
            synthesis: string;
        }[];
        sequenceSynthesis: string;
        possibleConnections: string[];
        uncertainties: string[];
        nextReflections: string[];
        safety: {
            requiresPause: boolean;
            requiresProfessionalReview: boolean;
            reason: string;
        };
        notice: string;
    }>;
    private findOrCreateOperation;
    private repairVersionedInvalidOutput;
    private assertRetryAllowed;
    private claimOperation;
    private persistCompleted;
    private readSnapshot;
    private toSnapshot;
    private buildContext;
    private contextQuestion;
    private assertReady;
    private authorized;
    private invalidateCachedResult;
    private markProviderFailure;
    private providerFailureCode;
    private markApiFailure;
    private publicProviderError;
    private get analysisPromptVersion();
    private get analysisSchemaVersion();
    private json;
}
