export type State = { value: T; v: T; }; export declare const state: (value: T, renew: () => boolean) => State;