import type { components } from '../generated/api.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export interface ListReviewItemsParams extends ListParams {
    status?: string | null;
    entity_type?: string | null;
    priority?: number | null;
    reason?: string | null;
    assigned_to?: string | null;
    created_after?: string | null;
    created_before?: string | null;
    sort_by?: string | null;
    sort_order?: string;
}
export interface ReviewHistoryParams extends ListParams {
    action?: string | null;
    reviewed_by?: string | null;
    completed_after?: string | null;
    completed_before?: string | null;
}
export declare class ReviewQueueResource extends WorkspaceScopedResource {
    list(params?: ListReviewItemsParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            assigned_to: string | null;
            completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
            completed_at: string | null;
            created_at?: string | null | undefined;
            entity?: {
                display_name: string | null;
                entity_type: string | null;
                id: string;
                state: {
                    [x: string]: unknown;
                } | null;
            } | null | undefined;
            entity_id: string | null;
            entity_type: string | null;
            event_ids: string[];
            events?: {
                confidence: number;
                created_at?: string | null | undefined;
                data: {
                    [x: string]: unknown;
                };
                event_type: string | null;
                fhir_resource_id: string | null;
                fhir_resource_type: string | null;
                id: string;
                review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
            }[] | null | undefined;
            id: string;
            judge_analysis: {
                [x: string]: unknown;
            } | null;
            priority: number;
            reason: string;
            session_id: string;
            status: "pending" | "in_progress" | "completed" | "rejected";
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listAutoPaging(params?: ListReviewItemsParams): AsyncGenerator<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    }, any, any>;
    get(itemId: string): Promise<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    getStats(): Promise<{
        avg_review_minutes: number | null;
        completed: number;
        pending: number;
        rejected: number;
    } & import("../index.js").ResponseMetadata>;
    getDashboard(): Promise<{
        completion_rate_24h: number | null;
        pending_by_priority: {
            [x: string]: number;
        };
        pending_by_reason: {
            [x: string]: unknown;
        }[];
        recent_completed: {
            assigned_to: string | null;
            completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
            completed_at: string | null;
            created_at?: string | null | undefined;
            entity?: {
                display_name: string | null;
                entity_type: string | null;
                id: string;
                state: {
                    [x: string]: unknown;
                } | null;
            } | null | undefined;
            entity_id: string | null;
            entity_type: string | null;
            event_ids: string[];
            events?: {
                confidence: number;
                created_at?: string | null | undefined;
                data: {
                    [x: string]: unknown;
                };
                event_type: string | null;
                fhir_resource_id: string | null;
                fhir_resource_type: string | null;
                id: string;
                review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
            }[] | null | undefined;
            id: string;
            judge_analysis: {
                [x: string]: unknown;
            } | null;
            priority: number;
            reason: string;
            session_id: string;
            status: "pending" | "in_progress" | "completed" | "rejected";
            workspace_id: string;
        }[];
        stats: {
            avg_review_minutes: number | null;
            completed: number;
            pending: number;
            rejected: number;
        };
    } & import("../index.js").ResponseMetadata>;
    getMyQueue(params?: ListParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            assigned_to: string | null;
            completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
            completed_at: string | null;
            created_at?: string | null | undefined;
            entity?: {
                display_name: string | null;
                entity_type: string | null;
                id: string;
                state: {
                    [x: string]: unknown;
                } | null;
            } | null | undefined;
            entity_id: string | null;
            entity_type: string | null;
            event_ids: string[];
            events?: {
                confidence: number;
                created_at?: string | null | undefined;
                data: {
                    [x: string]: unknown;
                };
                event_type: string | null;
                fhir_resource_id: string | null;
                fhir_resource_type: string | null;
                id: string;
                review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
            }[] | null | undefined;
            id: string;
            judge_analysis: {
                [x: string]: unknown;
            } | null;
            priority: number;
            reason: string;
            session_id: string;
            status: "pending" | "in_progress" | "completed" | "rejected";
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    getMyQueueAutoPaging(params?: ListParams): AsyncGenerator<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    }, any, any>;
    approve(itemId: string, body: components['schemas']['ApproveRequest']): Promise<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    reject(itemId: string, body: components['schemas']['RejectRequest']): Promise<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    claim(itemId: string): Promise<{
        assigned_to: string;
        id: string;
        status: string;
    } & import("../index.js").ResponseMetadata>;
    unclaim(itemId: string): Promise<{
        assigned_to: string;
        id: string;
        status: string;
    } & import("../index.js").ResponseMetadata>;
    correct(itemId: string, body: components['schemas']['CorrectRequest']): Promise<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
        failed: {
            [x: string]: string;
        }[];
        succeeded: string[];
    } & import("../index.js").ResponseMetadata>;
    batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
        failed: {
            [x: string]: string;
        }[];
        succeeded: string[];
    } & import("../index.js").ResponseMetadata>;
    getHistory(params?: ReviewHistoryParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            assigned_to: string | null;
            completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
            completed_at: string | null;
            created_at?: string | null | undefined;
            entity?: {
                display_name: string | null;
                entity_type: string | null;
                id: string;
                state: {
                    [x: string]: unknown;
                } | null;
            } | null | undefined;
            entity_id: string | null;
            entity_type: string | null;
            event_ids: string[];
            events?: {
                confidence: number;
                created_at?: string | null | undefined;
                data: {
                    [x: string]: unknown;
                };
                event_type: string | null;
                fhir_resource_id: string | null;
                fhir_resource_type: string | null;
                id: string;
                review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
            }[] | null | undefined;
            id: string;
            judge_analysis: {
                [x: string]: unknown;
            } | null;
            priority: number;
            reason: string;
            session_id: string;
            status: "pending" | "in_progress" | "completed" | "rejected";
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    getHistoryAutoPaging(params?: ReviewHistoryParams): AsyncGenerator<{
        assigned_to: string | null;
        completed_action: ("approve" | "reject" | "correct" | "approved" | "rejected" | "corrected") | null;
        completed_at: string | null;
        created_at?: string | null | undefined;
        entity?: {
            display_name: string | null;
            entity_type: string | null;
            id: string;
            state: {
                [x: string]: unknown;
            } | null;
        } | null | undefined;
        entity_id: string | null;
        entity_type: string | null;
        event_ids: string[];
        events?: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[] | null | undefined;
        id: string;
        judge_analysis: {
            [x: string]: unknown;
        } | null;
        priority: number;
        reason: string;
        session_id: string;
        status: "pending" | "in_progress" | "completed" | "rejected";
        workspace_id: string;
    }, any, any>;
    getTrends(params?: {
        days?: number;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    getPerformance(params?: {
        days?: number;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    getCorrectionSchema(itemId: string): Promise<{
        current_values: {
            [x: string]: unknown;
        };
        fhir_resource_type: string | null;
        fields: {
            [x: string]: unknown;
        };
    } & import("../index.js").ResponseMetadata>;
    getDiff(itemId: string): Promise<{
        corrected_events: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[];
        item_id: string;
        original_events: {
            confidence: number;
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            event_type: string | null;
            fhir_resource_id: string | null;
            fhir_resource_type: string | null;
            id: string;
            review_status: "pending" | "raw" | "uncertain" | "verified" | "approved" | "human_approved" | "auto_approved" | "rejected" | "corrected" | "flagged";
        }[];
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=review-queue.d.ts.map