import { PdfDefaultResourcesDictionary } from '../../annotations/pdf-default-resources.js'; import type { PdfObjectReference } from '../../core/objects/pdf-object-reference.js'; /** * Field types for AcroForm fields */ export declare const PdfFieldType: { readonly Text: "Tx"; readonly Button: "Btn"; readonly Choice: "Ch"; readonly Signature: "Sig"; }; export type PdfFieldType = keyof typeof PdfFieldType; /** * Interface that PdfAcroForm implements, used by PdfFormField to avoid circular imports. * Uses generic field type to avoid circular dependency. */ export interface FormContext { defaultResources: PdfDefaultResourcesDictionary | null; defaultAppearance: string | null; fontEncodingMaps: Map>; /** Object references for all resolved fonts, keyed by resource name. */ fontRefs: Map; fields: TField[]; isFontUnicode: (fontName: string) => boolean; needAppearances: boolean; }