import "../_dnt.polyfills.js"; import { type $Callback, type $OffListener } from "./createSignal.js"; export declare class StateSignal implements $ReadyonlyStateSignal { #private; readonly equals: (newValue: T, oldValue: T) => boolean; get state(): T; constructor(state: T, equals?: (newValue: T, oldValue: T) => boolean); emit: (state: T) => void; emitAndClear: (state: T) => void; clear: () => void; asReadyonly(): $ReadyonlyStateSignal; listen: (cb: $Callback<[T]>) => $OffListener; } export interface $ReadyonlyStateSignal { state: T; listen: (cb: $Callback<[T]>) => $OffListener; } //# sourceMappingURL=StateSignal.d.ts.map