import { MaybePromise } from '@mtcute/core'; import { UpdateFilter } from './types.js'; /** * Create a filter for the cases when the state is empty */ export declare const stateEmpty: UpdateFilter; /** * Create a filter based on state predicate * * If state exists and matches `predicate`, update passes * this filter, otherwise it doesn't * * @param predicate State predicate */ export declare function state(predicate: (state: T) => MaybePromise): UpdateFilter;