/**
 * with_field_audit — internal helper that wires the FieldAudit feature into
 * a form view when `enable_field_audit` is true.
 *
 * Returns:
 *  - `wrap(children)` — wraps the children in a FieldAuditProvider + a
 *    FormDataAuditor that watches the current `form_data`.
 *  - `merged_components` — the `field_action_components` value to feed into
 *    the form's context. Consumer-supplied slots win on collision so they
 *    can be combined with the audit overlay.
 *
 * When `enable_field_audit` is false this helper is a no-op: `wrap` returns
 * its children unchanged and `merged_components` is the original prop.
 */
import type { ReactNode } from 'react';
import type { FieldActionComponents } from '../hazo_collab_form_view/types.js';
export interface UseFieldAuditWiringOptions {
    enable_field_audit?: boolean;
    field_action_components?: FieldActionComponents;
    form_data: Record<string, unknown> | undefined;
    current_user?: string;
    /** Forwarded to FormDataAuditor — defaults to 750ms. */
    audit_debounce_ms?: number;
}
export interface FieldAuditWiring {
    /** Final `field_action_components` to pass into the form view's context. */
    merged_components: FieldActionComponents | undefined;
    /** Wraps the form view's children with the audit provider + watcher. */
    wrap: (children: ReactNode) => ReactNode;
}
export declare function useFieldAuditWiring(options: UseFieldAuditWiringOptions): FieldAuditWiring;
//# sourceMappingURL=with_field_audit.d.ts.map