import { z } from 'zod'; /** * Represents a PII (Personally Identifiable Information) * extracted from a text document. * @example EMAIL, PHONE_NUMBER, ADDRESS, etc. */ export declare const PiiSchema: 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 PII properties. */ export type PiiProps = z.infer; /** * Represents a personally identifiable information (PII) * extracted from a text document. * @example EMAIL, PHONE_NUMBER, ADDRESS, etc. */ export declare class Pii { props: PiiProps; /** * PII constructor. * @param props the properties of the PII. */ constructor(props: PiiProps); /** * @returns a new PII object. */ static from(data: any): Pii; /** * @returns the PII type. */ type(): string; /** * @returns the text associated with the * PII. */ text(): string; /** * @returns the confidence score associated with the * PII detection. */ score(): number; /** * @returns the start offset of the PII in the text document. */ startOffset(): number; /** * @returns the end offset of the PII in the text document. */ endOffset(): number; /** * @returns a JSON representation of the PII. */ toJSON(): { type: string; text: string; score: number; startOffset: number; endOffset: number; }; }