import { AtomViewModel } from "./AtomViewModel"; export declare type ILoadOptions = { /** * Initializes this action as soon as view model has been created. * If set true, success will be set to null as default. * @default true */ init: true; /** * Displays an error if error occurs during initialization, to turn it off * you can set to false * @default true */ showErrorOnInit?: boolean; watch?: false; watchDelayMS?: never; } | { init?: false; showErrorOnInit?: false; /** * Watch, executes this action whenever any of `this`'s properties updates, * this does not refresh when any property is assigned within this method. * Any subsequent update is ignored while the async operation is still in process. * * An automatic delay of 100 milliseconds (you can change this with watchDelayMS) * is applied before execution to accumulate * all updates and event is executed later on. */ watch: true; /** * Delay in milliseconds before invoking the watched expression. * @default 100 */ watchDelayMS?: number; } | { init: true; showErrorOnInit?: boolean; watch: true; watchDelayMS?: number; } | never; /** * Reports an alert to user when method is successful, or an error has occurred * or validation has failed. You can configure options to enable/disable certain * alerts. * @param reportOptions */ export default function Load({ init, showErrorOnInit, watch, watchDelayMS }: ILoadOptions): (target: AtomViewModel, key: string | symbol) => void; //# sourceMappingURL=Load.d.ts.map