import { DtoSyncGroupState } from "../CatalogueAPI.js"; import { OptionCode, SyncCode } from "./SyncGroupsHandler.js"; /** * The SyncState is used to keep track of the current value of the SyncGroups. * * SelectOne and SelectMany uses fully separate states internally since the two types of features * are synced separately. See SyncGroupsHandler for details. */ export declare class SyncGroupsState { private _verboseLogging; readonly _selectOne: Map; readonly _selectMany: Map>; /** * @param verboseLogging Set to true to get verbose sync state changes logged to the console. */ constructor(_verboseLogging: boolean, initial: DtoSyncGroupState | undefined); get verboseLogging(): boolean; /** * Set to true to get verbose sync state changes logged to the console. */ set verboseLogging(v: boolean); /** * @returns a deep copy of the SyncGroupState. */ clone(): SyncGroupsState; /** * Replaces the internal state of this SyncGroupState with a deep copy of the one in source. * @returns the updated SyncGroupState. */ copyFrom(source: SyncGroupsState): SyncGroupsState; setForSelectOne(syncCode: SyncCode, optionCode: OptionCode): void; setForSelectMany(syncCode: SyncCode, optionCode: OptionCode, selected: boolean): void; getForSelectOne(syncCode: SyncCode): OptionCode | undefined; getForSelectMany(syncCode: SyncCode, optionCode: OptionCode): boolean | undefined; /** Overrides the current sync state */ setCompact(s: DtoSyncGroupState): void; getCompact(): DtoSyncGroupState; log(syncCode?: SyncCode, optionCode?: OptionCode, selected?: boolean): void; } //# sourceMappingURL=SyncGroupsState.d.ts.map