import type { CreateProposalReviewParams, CreateResult, UpdateProposalReviewParams } from '../types.js'; /** * Builds create-proposal-review ops. * * The review is linked to the proposal through the proposals relation and can * include pass/fail, optional markdown content, and optional rating values. * * @example * ```ts * import { proposalReviews } from '@geoprotocol/geo-sdk/ops'; * * const { id, ops } = proposalReviews.create({ * proposal: { id: proposalId, name: 'Improve restaurant data' }, * pass: true, * content: 'The edit is complete and accurate.', * }); * ``` * * @param params Proposal reference, pass/fail value, optional content, optional ratings, and optional review ID. * @returns Generated or supplied review entity ID and create ops. * @throws When the review ID or proposal ID is invalid. */ export declare const create: (params: CreateProposalReviewParams) => CreateResult; /** * Builds update-proposal-review ops. * * @example * ```ts * import { proposalReviews } from '@geoprotocol/geo-sdk/ops'; * * const { ops } = proposalReviews.update({ * proposalReviewId: reviewId, * pass: false, * content: 'Needs more sources.', * }); * ``` * * @param params Review ID, pass/fail value, optional content, and optional rating values. * @returns Review entity ID and update ops. * @throws When the review ID is invalid. */ export declare const update: (params: UpdateProposalReviewParams) => CreateResult; //# sourceMappingURL=proposal-reviews.d.ts.map