import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { TextRange, TextRange$Outbound } from "./textrange.js"; export type SearchResultSnippet = { /** * The mime type of the snippets, currently either text/plain or text/html. */ mimeType?: string | undefined; /** * A matching snippet from the document with no highlights. */ text?: string | undefined; /** * Used for sorting based off the snippet's location within all_snippetable_text */ snippetTextOrdering?: number | undefined; /** * The bolded ranges within text. */ ranges?: Array | undefined; /** * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. */ url?: string | undefined; /** * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. * * @deprecated field: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use 'text' field instead. */ snippet?: string | undefined; }; /** @internal */ export declare const SearchResultSnippet$inboundSchema: z.ZodType; /** @internal */ export type SearchResultSnippet$Outbound = { mimeType?: string | undefined; text?: string | undefined; snippetTextOrdering?: number | undefined; ranges?: Array | undefined; url?: string | undefined; snippet?: string | undefined; }; /** @internal */ export declare const SearchResultSnippet$outboundSchema: z.ZodType; export declare function searchResultSnippetToJSON(searchResultSnippet: SearchResultSnippet): string; export declare function searchResultSnippetFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=searchresultsnippet.d.ts.map