import { z } from 'zod'; /** * Represents a part of speech extracted from a text document. * @example NOUN, VERB, ADJECTIVE, etc. */ export declare const PosSchema: z.ZodObject<{ tag: z.ZodString; text: z.ZodString; score: z.ZodNumber; startOffset: z.ZodNumber; endOffset: z.ZodNumber; }, "strip", z.ZodTypeAny, { text: string; tag: string; score: number; startOffset: number; endOffset: number; }, { text: string; tag: string; score: number; startOffset: number; endOffset: number; }>; /** * The part of speech properties. */ export type PosProps = z.infer; /** * Represents a part of speech extracted from a text document. * @example NOUN, VERB, ADJECTIVE, etc. */ export declare class PartOfSpeech { props: PosProps; /** * Pos constructor. * @param props the properties of the part of speech. */ constructor(props: PosProps); /** * @returns the part of speech tag. */ static from(data: any): PartOfSpeech; /** * @returns the part of speech tag. */ tag(): string; /** * @returns the text associated with the * part of speech. */ text(): string; /** * @returns the confidence score associated with the * part of speech. */ score(): number; /** * @returns the start offset of the part of speech. * The start offset is the index of the first character * of the part of speech in the text document. */ startOffset(): number; /** * @returns the end offset of the part of speech. * The end offset is the index of the last character * of the part of speech in the text document. */ endOffset(): number; /** * @returns the JSON representation of the part of speech. */ toJSON(): { text: string; tag: string; score: number; startOffset: number; endOffset: number; }; }