/** Raw metadata used to derive a device title and approximate location. */ export type DeviceDisplayMetadata = { readonly userAgent?: string; readonly country?: string; readonly city?: string; }; type SessionWithLastSubmission = { readonly lastSubmission?: { readonly signInContext?: unknown; } | null; }; type ParsedUserAgentInfo = { readonly browserName?: string; readonly osName?: string; readonly deviceModel?: string; }; /** Normalized device information shared by session and device-management views. */ export type DeviceDisplayInfo = ParsedUserAgentInfo & { readonly name?: string; readonly location?: string; readonly city?: string; readonly country?: string; }; export type SessionDisplayInfo = DeviceDisplayInfo & { readonly ip?: string; }; type UserApplicationGrant = { readonly id: string; readonly payload: { readonly clientId: string; readonly iat: number; }; readonly application: { readonly id: string; readonly name: string; }; }; export type UserApplicationGrantGroup = { readonly id: string; readonly applicationId: string; readonly applicationName: string; readonly iat: number; readonly grantIds: string[]; }; /** Derive reusable browser, operating-system, device, and location display information. */ export declare const getDeviceDisplayInfo: ({ userAgent, country, city, }: DeviceDisplayMetadata) => DeviceDisplayInfo; export declare const getSessionDisplayInfo: (session: SessionWithLastSubmission) => SessionDisplayInfo; export declare const normalizeUserApplicationGrantGroups: (grants: readonly UserApplicationGrant[]) => UserApplicationGrantGroup[]; export {};