/** * An Event Operator emitting a FormData object from the underlying form element instead of a regular DOM Event object * @returns OperatorFunction * @example
...
**/ export declare const form: import("rxjs").OperatorFunction; /** * An Event Adapter emitting the underlying form's key-values * @effect calls preventDefault() on the event * @unstable might need to review the preventDefault() behaviour * @unstable might need to review the checkbox behaviour (on/off vs true/false) * @returns EventSource * @example `
...
` * @example `
...
` * * ## Examples * ### Submit a form into a stream * * No need to call preventDefault() on the event, as this is done automatically * ```ts * import { rml } from 'rimmel'; * * const Component = () => { * const stream = new Subject(); * * return rml` *
* * *
* `; * } * ``` * * ### Submit a dialog form into a stream * ```ts * import { rml } from 'rimmel'; * * const Component = () => { * const stream = new Subject(); * * return rml` *
* * *
* `; * } * ``` **/ export declare const Form: (target: ((data: Object) => void) | import("..").ObserverFunction | Partial<{ next?: import("..").ObserverFunction | undefined; error?: import("..").ObserverErrorFunction; complete?: import("..").ObserverCompleteFunction; }> | undefined) => Partial<{ next?: import("..").ObserverFunction | undefined; error?: import("..").ObserverErrorFunction; complete?: import("..").ObserverCompleteFunction; }> & { next: (value: Event | SubmitEvent) => void; }; export declare const asFormData: import("rxjs").OperatorFunction; export declare const AsFormData: (target: ((data: Object) => void) | import("..").ObserverFunction | Partial<{ next?: import("..").ObserverFunction | undefined; error?: import("..").ObserverErrorFunction; complete?: import("..").ObserverCompleteFunction; }> | undefined) => Partial<{ next?: import("..").ObserverFunction | undefined; error?: import("..").ObserverErrorFunction; complete?: import("..").ObserverCompleteFunction; }> & { next: (value: Event | SubmitEvent) => void; }; //# sourceMappingURL=form-data-source.d.ts.map