import { DestroyRef, Injector, WritableSignal } from '@angular/core'; import { Observable } from 'rxjs'; export declare class State { defaults: T; injector: Injector; _destroyRef: DestroyRef; state: WritableSignal; state$: Observable; subscribe: typeof this.state$.subscribe; pipe: typeof this.state$.pipe; private subscriptions; constructor(defaults: T, injector?: Injector); get snapshot(): T; /** * @deprecated The method should not be used */ asObservable(): Observable; set(state: T): void; patch(patch: Partial): void; reset(): void; connect(source: Observable): this; flush(): void; /** * @deprecated The method should not be used */ sync>(state: T): this; select(key: K): State; pick(...keys: K[]): State>; connectTo(key: K, source: Observable): this; }