import type { SurveyExtractionEnvelopeImport, SurveyExtractionReviewDecision, SurveyExtractionReviewItem } from "@kontourai/surface"; import type { ExtractionEnvelopeImport } from "./extraction-envelope.js"; import type { ReviewDecision, ReviewItem } from "./review-resource.js"; /** * The version of the `@kontourai/surface` package whose entry point * `resolveEntry` returns. Surface does not export its package.json, so this * walks up from the entry to the nearest package.json named * `@kontourai/surface`; other package.json files on the way (a nested * `{ "type": "module" }`, say) are skipped. Throws a Survey error when the * entry cannot be resolved, as in a bundle without `import.meta.resolve`, or * no such package.json exists. */ export declare function surfaceVersionFromEntry(resolveEntry: () => string): string; /** Whether a Surface version accepts proposals without confidence. An unparseable version does not. */ export declare function surfaceAcceptsAbsentConfidence(version: string): boolean; /** * The record, typed for Surface's reviewed-extraction profile. A proposal * without confidence passes through without one; no number is substituted. * On a Surface older than 4.1.0, which rejects such a proposal, the record is * refused by name instead. * * The version checked is that of the Surface copy Survey itself resolves. A * consumer that projects with a different copy (for example Surface 4.0.0 of * its own next to Survey's 4.2.0) gets Surface's own refusal instead of this * one; dedupe Surface so that one copy is installed. */ export declare function toSurfaceReviewedExtractionImport(record: ExtractionEnvelopeImport): SurveyExtractionEnvelopeImport; export declare function toSurfaceReviewedExtractionItem(item: ReviewItem): SurveyExtractionReviewItem; export declare function toSurfaceReviewedExtractionDecision(decision: ReviewDecision): SurveyExtractionReviewDecision;