import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Document, Document$Outbound } from "./document.js"; export declare const TextRangeType: { readonly Bold: "BOLD"; readonly Citation: "CITATION"; readonly Highlight: "HIGHLIGHT"; readonly Link: "LINK"; }; export type TextRangeType = OpenEnum; /** * A subsection of a given string to which some special formatting should be applied. */ export type TextRange = { /** * The inclusive start index of the range. */ startIndex: number; /** * The exclusive end index of the range. */ endIndex?: number | undefined; type?: TextRangeType | undefined; /** * The URL associated with the range, if applicable. For example, the linked URL for a LINK range. */ url?: string | undefined; document?: Document | undefined; }; /** @internal */ export declare const TextRangeType$inboundSchema: z.ZodType; /** @internal */ export declare const TextRangeType$outboundSchema: z.ZodType; /** @internal */ export declare const TextRange$inboundSchema: z.ZodType; /** @internal */ export type TextRange$Outbound = { startIndex: number; endIndex?: number | undefined; type?: string | undefined; url?: string | undefined; document?: Document$Outbound | undefined; }; /** @internal */ export declare const TextRange$outboundSchema: z.ZodType; export declare function textRangeToJSON(textRange: TextRange): string; export declare function textRangeFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=textrange.d.ts.map