import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * The most likely value even when `value` is null because `p_null` crossed the threshold. */ export type ExtractionEstimateAnswerGuess = number | string; export type ExtractionEstimateAnswerMean = number | string; export type ExtractionEstimateAnswerMedian = number | string; export type ExtractionEstimateAnswerP10 = number | string; export type ExtractionEstimateAnswerP90 = number | string; export type ExtractionEstimateAnswerQuantile = number | string; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ export declare const ExtractionEstimateAnswerSource: { readonly State: "state"; readonly Image: "image"; readonly Document: "document"; }; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ export type ExtractionEstimateAnswerSource = OpenEnum; export type ExtractionEstimateAnswerValue = number | string; export type ExtractionEstimateAnswer = { confidence?: number | undefined; /** * The most likely value even when `value` is null because `p_null` crossed the threshold. */ guess?: number | string | undefined; mean?: number | string | undefined; median?: number | string | undefined; /** * Probability mass above `max`. */ pAbove?: number | undefined; /** * Probability mass below `min`. */ pBelow?: number | undefined; /** * Probability that the state contains nothing for this field. */ pNull?: number | undefined; p10?: number | string | undefined; p90?: number | string | undefined; /** * 99 percentiles, present when the provider is asked for quantiles. */ quantiles?: Array | undefined; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ source?: ExtractionEstimateAnswerSource | undefined; /** * Confidence in the spelling of text read from an image. */ spellConfidence?: number | undefined; type: "estimate"; value: number | string | null; }; /** @internal */ export declare const ExtractionEstimateAnswerGuess$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerGuessFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerMean$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerMeanFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerMedian$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerMedianFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerP10$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerP10FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerP90$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerP90FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerQuantile$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerQuantileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswerSource$inboundSchema: z.ZodType; /** @internal */ export declare const ExtractionEstimateAnswerValue$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerValueFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionEstimateAnswer$inboundSchema: z.ZodType; export declare function extractionEstimateAnswerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extractionestimateanswer.d.ts.map