import { z } from 'zod'; /** * Represents an entity extracted from a text document. * @example QUANTITY, EVENT, ORGANIZATION, etc. */ export declare const EntitySchema: z.ZodObject<{ type: z.ZodString; text: z.ZodString; score: z.ZodNumber; startOffset: z.ZodNumber; endOffset: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; text: string; score: number; startOffset: number; endOffset: number; }, { type: string; text: string; score: number; startOffset: number; endOffset: number; }>; /** * The entity properties. */ export type EntityProps = z.infer; /** * Represents an entity extracted from a text document. * @example QUANTITY, EVENT, ORGANIZATION, etc. */ export declare class Entity { props: EntityProps; /** * Pos constructor. * @param props the properties of the part of speech. */ constructor(props: EntityProps); /** * @returns the part of speech tag. */ static from(data: any): Entity; /** * @returns the type of the entity. */ type(): string; /** * @returns the text associated with the * entity. */ text(): string; /** * @returns the confidence score associated with the * entity detection. */ score(): number; /** * @returns the start offset of the entity. */ startOffset(): number; /** * @returns the end offset of the entity. */ endOffset(): number; /** * @returns a JSON representation of the entity. */ toJSON(): { type: string; text: string; score: number; startOffset: number; endOffset: number; }; }