type AiAssistantCodexManagerRuntime = {
    isWorkersEnabled: boolean;
    isWorkerInstance: boolean;
    workerIndex?: string | null;
    workerInstance?: string | null;
};
type AiAssistantCodexManagerConfig = {
    enabled: boolean;
    runOnAnyWorker: boolean;
    targetWorkerIndex: string;
    targetWorkerInstance: string | null;
    pollIntervalMs: number;
    lookbackMinutes: number;
    maxMessagesPerPoll: number;
    maxRemediationsPerPoll: number;
    autoReportEnabled: boolean;
    autoRemediationEnabled: boolean;
    remediationHookPath: string;
    remediationTimeoutMs: number;
    remediationMaxBufferBytes: number;
    remediationMaxAttemptsPerIssue: number;
    remediationCooldownMinutes: number;
    autoReplayEnabled: boolean;
    replayCommand: string;
    replayTimeoutMs: number;
    replayMaxBufferBytes: number;
    replayMaxAttemptsPerIssue: number;
    replayCooldownMinutes: number;
    debug: boolean;
};
export declare class AiAssistantCodexManager {
    private readonly config;
    private readonly runtime;
    private _interval;
    private _inFlight;
    private _cursorCreatedAt;
    private _cursorMessageId;
    constructor(config: AiAssistantCodexManagerConfig, runtime: AiAssistantCodexManagerRuntime);
    static createIfEnabled(runtime: AiAssistantCodexManagerRuntime): AiAssistantCodexManager | null;
    private static resolveConfig;
    private static shouldRunOnCurrentProcess;
    private initialize;
    private pollOnce;
    private processMessage;
    private evaluateMessageQuality;
    private ensureAutomatedIssueReport;
    private pollRemediationQueue;
    runIssueRemediation(issueReportId: string, options?: {
        force?: boolean;
        source?: 'auto' | 'manual';
        trigger?: string;
    }): Promise<Record<string, any>>;
    runIssueReplay(issueReportId: string, options?: {
        force?: boolean;
        source?: 'auto' | 'manual';
        trigger?: string;
    }): Promise<Record<string, any>>;
    private markMessageQualityReviewed;
    private resolveClosestUserPrompt;
    private writeRemediationContextFile;
    private writeReplayContextFile;
    private parseOutputJson;
    private toSafeOutput;
    private parseDate;
    private normalizeMetadata;
}
export {};
