export type GateState = 'pending' | 'authenticated' | 'locked' | 'error' | 'rate-limited'; export const resolveStatusCheckFailureState = (options: { shouldUseDesktopShellPasswordLogin?: boolean; }): Exclude => { if (options.shouldUseDesktopShellPasswordLogin) { return 'locked'; } return 'error'; };