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"; export type ExtractionListAnswerGuess = string | number; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ export declare const ExtractionListAnswerSource: { 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 ExtractionListAnswerSource = OpenEnum; export type ExtractionListAnswerValue = string | number; export type ExtractionListAnswer = { confidence?: number | undefined; /** * One confidence per item of `value`, in the same order. */ confidences?: Array | undefined; /** * The most likely value even when `value` is null because `p_null` crossed the threshold. */ guess?: Array | undefined; /** * Probability that the state contains nothing for this field. */ pNull?: number | undefined; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ source?: ExtractionListAnswerSource | undefined; /** * One span per item of `value`, in the same order; null for an item that has no offsets in the state text: one read from an image or a document, or one the provider returned without offsets that delimit it. */ spans?: Array | null> | undefined; /** * Confidence in the spelling of text read from an image. */ spellConfidence?: number | undefined; type: "list"; value: Array | null; }; /** @internal */ export declare const ExtractionListAnswerGuess$inboundSchema: z.ZodType; export declare function extractionListAnswerGuessFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionListAnswerSource$inboundSchema: z.ZodType; /** @internal */ export declare const ExtractionListAnswerValue$inboundSchema: z.ZodType; export declare function extractionListAnswerValueFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExtractionListAnswer$inboundSchema: z.ZodType; export declare function extractionListAnswerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extractionlistanswer.d.ts.map