/** * @name setStateAsync * @description This is used to be able to set the state * and return a promise for a promise chain to make code easier * to follow * @note this works exactly like `this.setState`, only difference * is that it returns a promise * @arg {object, function} state - the way to set the state * @async * @example * class Something extends PureComponent { * setStateAsync = setStateAsync * * async something () { * await this.setStateAsync({ something: true }) * await this.somethingElse() * } * } */ export declare function setStateAsync(state: object): Promise; //# sourceMappingURL=set-state-async.d.ts.map