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"; /** * Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. */ export declare const ExtractionDatetimeAnswerSource: { 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 ExtractionDatetimeAnswerSource = OpenEnum; export type ExtractionDatetimeAnswer = { confidence?: number | undefined; /** * The most likely value even when `value` is null because `p_null` crossed the threshold. */ guess?: string | 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?: ExtractionDatetimeAnswerSource | undefined; /** * Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it. */ span?: Array | undefined; /** * Confidence in the spelling of text read from an image. */ spellConfidence?: number | undefined; type: "datetime"; value: string | null; }; /** @internal */ export declare const ExtractionDatetimeAnswerSource$inboundSchema: z.ZodType; /** @internal */ export declare const ExtractionDatetimeAnswer$inboundSchema: z.ZodType; export declare function extractionDatetimeAnswerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=extractiondatetimeanswer.d.ts.map