import { $ as FormWidgetItem, A as FormImportOptions, B as FormSettings, C as FormFieldValue, D as FormFocusOptions, E as FormFocusNextOptions, F as FormRepairResult, G as FormValidationRejectedEvent, H as FormTransfer, I as FormResetResult, J as WidgetActivationResult, K as FormValueChangedEvent, L as FormResyncedEvent, M as FormKind, N as FormPlainValue, O as FormImportDrop, P as FormRepairOptions, Q as FormToken, R as FormSetValueResult, S as FormFieldUpdatedEvent, T as FormFocusChangedEvent, U as FormUiEffect, V as FormSnapshot, W as FormValidation, X as WidgetAnnotation, Y as WidgetAddress, Z as toFieldRef, _ as FormFieldPatch, a as FormCommitResult, b as FormFieldSetting, c as FormDuplicateOptions, d as FormField, et as Box, f as FormFieldCreatedEvent, g as FormFieldKind, h as FormFieldFlagSetting, i as FormCapability, it as WidgetHit, j as FormImportResult, k as FormImportDropReason, l as FormDuplicateResult, m as FormFieldDraft, n as FillableFields, nt as FormWidgetLook, o as FormCommitStatus, p as FormFieldDeletedEvent, q as FormWidgetAddResult, r as FormBundle, s as FormConfig, t as FORM_DEFAULTS, tt as FormModel, u as FormExportSelection, v as FormFieldRef, w as FormFilter, x as FormFieldSettings, y as FormFieldResult, z as FormSetValueStatus } from "./contract-Bq_ewUE5.cjs"; import { n as FormHostCapability } from "./host-contract-DI1Gf4fB.cjs"; import { FormScriptingController, createFormScriptingController } from "./scripting.cjs"; import { ResourceStatus } from "@embedpdf/core"; import { FormField as FormField$1, FormFieldKind as FormFieldKind$1, FormKind as FormKind$1, WidgetAppearance } from "@embedpdf/engine-core/runtime"; import { ClickCreate } from "@embedpdf/plugin-annotation/contract"; //#region src/form.plugin.d.ts /** * The form plugin: the field plane. Document-scoped; requires the * interaction hub. Filling works without the annotation plugin, because * widget geometry is read from the engine's widget records. The active tool * is the mode switch: while it carries 'form-fill' (the built-in pointer and * pan tools do, so filling is the resting state), the form layer draws and * fills every widget. Design mode is the 'form-edit' and palette tools: with * the annotation plugin present, the form lends it the widgets, which its * tools then select, move, restyle and delete. The render plugin draws the * widgets' pictures in both modes. With the fonts plugin, a text field in a * font of its own is edited in that font's program. `config` is the settings the app * registers, over {@link FORM_DEFAULTS}. */ declare const formPlugin: (config?: FormConfig) => import("@embedpdf/core").PluginDefinition; //#endregion //#region src/state.d.ts /** Every field, whether the form is read, what kind of form it is, the selected widget's field, and the field the cursor is in. */ interface FormState { /** Every field. The same array while nothing changes. */ readonly fields: readonly FormField$1[]; /** Whether the form is read. */ readonly status: ResourceStatus; /** What the document has: `'none'`, `'acroform'` or `'xfa'`. */ readonly formKind: FormKind$1; /** The field of the selected widget while one widget is selected (in design mode), or `null`. */ readonly selectedField: FormField$1 | null; /** The field the cursor is in, or `null`. */ readonly focusedField: FormField$1 | null; } declare const formState: import("@embedpdf/core").StateDeclaration; //#endregion //#region src/tools/definitions.d.ts /** The kinds the palette places. */ type AuthorableFormKind = Exclude; interface FormToolDefinition { id: string; /** The field kind the tool places (the form plane's vocabulary). */ fieldKind: AuthorableFormKind; /** The client kind the annotation registry routes on (props panel). * Not a PDF subtype — every widget is PDF `widget`; this is the view. */ visualKind: 'widget-text' | 'widget-choice' | 'widget-button' | 'widget-toggle' | 'widget-radio' | 'widget-box'; /** What a bare click places (box policies only — fields are boxes). */ clickCreate: Extract; /** Seed drawing defaults, the widget's appearance fields: a placed field is * visible (white box, gray border) and restylable per tool through the * shared style panel. */ defaults: WidgetAppearance; cursor: string; } declare const FORM_TOOLS: readonly FormToolDefinition[]; declare const FORM_TOOL_BY_ID: ReadonlyMap; //#endregion export { type AuthorableFormKind, type Box, FORM_DEFAULTS, FORM_TOOLS, FORM_TOOL_BY_ID, FillableFields, type FormBundle, FormCapability, FormCommitResult, FormCommitStatus, FormConfig, FormDuplicateOptions, FormDuplicateResult, FormExportSelection, type FormField, FormFieldCreatedEvent, FormFieldDeletedEvent, type FormFieldDraft, FormFieldFlagSetting, type FormFieldKind, type FormFieldPatch, type FormFieldRef, FormFieldResult, FormFieldSetting, FormFieldSettings, FormFieldUpdatedEvent, type FormFieldValue, FormFilter, FormFocusChangedEvent, FormFocusNextOptions, FormFocusOptions, type FormImportDrop, type FormImportDropReason, type FormImportOptions, FormImportResult, type FormKind, FormPlainValue, type FormRepairOptions, type FormRepairResult, FormResetResult, FormResyncedEvent, FormScriptingController, FormSetValueResult, FormSetValueStatus, FormSettings, type FormSnapshot, type FormState, FormToken, type FormToolDefinition, FormTransfer, FormUiEffect, FormValidation, FormValidationRejectedEvent, FormValueChangedEvent, FormWidgetAddResult, type FormWidgetItem, type FormWidgetLook, WidgetActivationResult, WidgetAddress, type WidgetAnnotation, type WidgetHit, createFormScriptingController, formPlugin, formState, toFieldRef }; //# sourceMappingURL=index.d.cts.map