import { UserId } from "@bitwarden/user-core"; export type RequiredUserId = { userId: UserId }; /** * This class exists for various legacy reasons, there are likely better things to use than this service. */ export abstract class StateService { abstract clean(options: RequiredUserId): Promise; /** * Gets the user's auto key */ abstract getUserKeyAutoUnlock(options: RequiredUserId): Promise; /** * Sets the user's auto key */ abstract setUserKeyAutoUnlock(value: string | null, options: RequiredUserId): Promise; /** * @deprecated For backwards compatible purposes only, use DesktopAutofillSettingsService */ abstract setEnableDuckDuckGoBrowserIntegration(value: boolean): Promise; abstract getDuckDuckGoSharedKey(): Promise; abstract setDuckDuckGoSharedKey(value: string): Promise; }