import { ComponentMetaspaceScope } from "../../component-types.mjs"; import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs"; import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs"; import { IbGibDynamicComponentMetaBase, IbGibDynamicComponentInstanceBase } from "../../ibgib-dynamic-component-bases.mjs"; import { ElementsBase, IbGibDynamicComponentInstance, IbGibDynamicComponentInstanceInitOpts } from "../../component-types.mjs"; export declare const IDENTITY_HEADER_COMPONENT_NAME = "ibgib-identity-header"; /** * Metadata for the Identity Header component. */ export declare class IdentityHeaderComponentMeta extends IbGibDynamicComponentMetaBase { protected lc: string; routeRegExp?: RegExp; componentName: string; constructor(); createInstance({ path, ibGibAddr }: { path: string; ibGibAddr: IbGibAddr; }): Promise; } /** * References to DOM elements within the component's shadow root. */ interface IdentityHeaderElements extends ElementsBase { containerEl: HTMLDivElement; btnIdentityPillEl: HTMLButtonElement; pillAuthContentEl: HTMLDivElement; pillUnauthContentEl: HTMLDivElement; identityAvatarEl: HTMLDivElement; identityUsernameEl: HTMLSpanElement; updateBadgeEl: HTMLSpanElement; dropdownMenuEl: HTMLDivElement; sectionUpdateEl: HTMLDivElement; btnMenuUpdateIdentityEl: HTMLButtonElement; updateNTextEl: HTMLSpanElement; sectionIdentitiesEl: HTMLDivElement; identitiesListEl: HTMLDivElement; sectionActionsEl: HTMLDivElement; btnMenuCreateAccountEl: HTMLButtonElement; btnMenuSignInEl: HTMLButtonElement; btnMenuGoogleSsoEl: HTMLButtonElement; btnMenuGithubSsoEl: HTMLButtonElement; sectionSettingsEl: HTMLDivElement; btnMenuManageEl: HTMLButtonElement; syncProgressModalEl: HTMLDivElement; syncModalSpinnerEl: HTMLDivElement; syncModalTitleEl: HTMLHeadingElement; syncModalMsgEl: HTMLParagraphElement; syncModalStatusEl: HTMLDivElement; syncModalNTextEl: HTMLSpanElement; btnSyncModalCloseEl: HTMLButtonElement; } /** * Concrete implementation of the Identity Header component. */ export declare class IdentityHeaderComponentInstance extends IbGibDynamicComponentInstanceBase implements IbGibDynamicComponentInstance { protected lc: string; /** Identity is device-scoped and mode-agnostic: always use the persistent metaspace. */ protected metaspaceScope: ComponentMetaspaceScope; private activeAddr; private _onRequestIdentityChange; private _onIdentityUpdateAvailable; private _onIdentityChanged; private _onDocumentClick; private pendingUpdateDetail; private keystoneCache; private isDropdownLocked; private dropdownHideTimer; constructor(); private getKeystoneDetails; initialize(opts: IbGibDynamicComponentInstanceInitOpts): Promise; created(): Promise; private loadKeystonesIndex; disconnected(): Promise; private closeDropdown; private initHandlers; private navigateToManager; /** * Resolves the active identity from settings and verifies it exists in the keystones index. */ private resolveActiveIdentity; protected renderUI(): Promise; private handleIdentityUpdateAvailable; private handleIdentityChanged; private handleRequestIdentityChange; handleContextUpdated(): Promise; } export {}; //# sourceMappingURL=identity-header.d.mts.map