import type { Visibility } from "../sharing/schema.js"; import type { ReviewActorKind, ReviewComment, ReviewCommentKind, ReviewMention, ReviewResolutionTarget, ReviewScope, ReviewStatus, ReviewStatusEntry } from "./types.js"; export interface InsertReviewCommentInput { resourceType: string; resourceId: string; threadId?: string | null; parentCommentId?: string | null; targetId?: string | null; kind?: ReviewCommentKind; anchor?: unknown | null; body: string; authorEmail?: string | null; authorName?: string | null; createdBy?: ReviewActorKind; resolutionTarget?: ReviewResolutionTarget | null; mentions?: ReviewMention[]; ownerEmail?: string | null; orgId?: string | null; visibility?: Visibility | null; metadata?: Record | null; } export interface QueryReviewCommentsInput { resourceType: string; resourceId: string; scope: ReviewScope; bypassScope?: boolean; includeResolved?: boolean; includeDeleted?: boolean; targetId?: string | null; rootOnly?: boolean; resolutionTargets?: readonly (ReviewResolutionTarget | null)[]; unconsumedOnly?: boolean; limit?: number; } export interface GetReviewThreadSummaryInput { resourceType: string; resourceId: string; scope: ReviewScope; bypassScope?: boolean; targetId?: string | null; } export interface ReviewThreadSummary { openCount: number; agentQueueCount: number; } export interface UpsertReviewStatusInput { resourceType: string; resourceId: string; status: ReviewStatus; note?: string | null; updatedBy?: string | null; ownerEmail?: string | null; orgId?: string | null; visibility?: Visibility | null; metadata?: Record | null; } export declare function ensureReviewTables(): Promise; export declare function insertReviewComment(input: InsertReviewCommentInput): Promise; export declare function insertReviewReply(input: InsertReviewCommentInput & { threadId: string; parentCommentId: string; }, routeTarget: ReviewResolutionTarget | null, resource: { resourceType: string; resourceId: string; }): Promise; export declare function queryReviewComments(input: QueryReviewCommentsInput): Promise; export declare function getReviewThreadSummary(input: GetReviewThreadSummaryInput): Promise; export declare function getReviewCommentById(id: string, scope: ReviewScope, options?: { bypassScope?: boolean; }): Promise; export declare function getReviewThreadRoot(threadId: string, resource: { resourceType: string; resourceId: string; }, scope: ReviewScope, options?: { bypassScope?: boolean; }): Promise; export declare function resolveReviewThread(threadId: string, resolvedBy?: string | null, resource?: { resourceType: string; resourceId: string; }, resolutionNote?: string): Promise; export declare function routeReviewThread(threadId: string, resolutionTarget: ReviewResolutionTarget, resource: { resourceType: string; resourceId: string; }): Promise; export declare function sendReviewThreadToAgent(threadId: string, resource: { resourceType: string; resourceId: string; }): Promise; export declare function deleteReviewComment(id: string, deletedBy?: string | null): Promise; export declare function consumeReviewFeedback(ids: string[], consumedAt?: string, resource?: { resourceType: string; resourceId: string; }): Promise; export declare function upsertReviewStatus(input: UpsertReviewStatusInput): Promise; export declare function getReviewStatus(resourceType: string, resourceId: string, scope: ReviewScope, options?: { bypassScope?: boolean; }): Promise; export declare function __resetReviewInitForTests(): void; //# sourceMappingURL=store.d.ts.map