export interface ViewStateActions { get(): S; set(s: S, d?: Partial): void; update(d: Partial): void; is(s: S): boolean; min(s: S): boolean; after(s: S): boolean; } export declare const useViewState: (states: S[], defaultData: D) => readonly [D, { readonly get: () => S; readonly set: (s: S, d?: Partial) => void; readonly update: (d: Partial) => void; readonly is: (s: S) => boolean; readonly min: (s: S) => boolean; readonly after: (s: S) => boolean; }];