import type { EventListenerFunction } from "../types/dom"; import type { RMLTemplateExpression } from "../types/internal"; import type { Source } from '../types/source'; export type ObjectKey = string | number; export type TargetObject = object | Array; export type ObjectSourceExpression = [key: keyof T, target: T]; /** * @deprecated don't use **/ export declare const isObjectSource: (expression: RMLTemplateExpression) => expression is ObjectSourceExpression; /** * A data source that updates an object's property from an <input> element when * a certain event occurs * @param key an ['property', object] or [index, array] pair to update * @returns A data source * @example * @example * @example */ export declare const ObjectSource: (key: keyof T, targetObject?: T) => EventListenerFunction | ((t2: T) => EventListenerFunction); /** * An Event Adapter that uses an event's underlying <input> element * to updates an object's property or an array item. * @param property A property to update in the given object or an index to update in the given array * @param object The object or array to update * @returns An event handler */ export declare const Update: (property: keyof T, object?: T) => ((t2: T) => EventListenerFunction) | EventListenerFunction | Source; export declare const asObjectSource: (key: keyof T, targetObject?: T) => EventListenerFunction | ((t2: T) => EventListenerFunction); export declare const AsObjectSource: (key: keyof T, targetObject?: T) => EventListenerFunction | ((t2: T) => EventListenerFunction); //# sourceMappingURL=object-source.d.ts.map