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 { KeystoneIbGib_V1 } from "@ibgib/core-gib/dist/keystone/keystone-types.mjs"; import { IbGibDynamicComponentMetaBase, IbGibDynamicComponentInstanceBase } from "../../ibgib-dynamic-component-bases.mjs"; import { ElementsBase, IbGibDynamicComponentInstance, IbGibDynamicComponentInstanceInitOpts } from "../../component-types.mjs"; export declare const KEYSTONE_DETAILS_COMPONENT_NAME = "ibgib-keystone-details"; export declare class KeystoneDetailsComponentMeta extends IbGibDynamicComponentMetaBase { protected lc: string; routeRegExp?: RegExp; componentName: string; constructor(); createInstance({ path, ibGibAddr }: { path: string; ibGibAddr: IbGibAddr; }): Promise; } interface KeystoneDetailsElements extends ElementsBase { identityDetailsViewEl: HTMLDivElement; identityAddrEl: HTMLElement; identityGenEl: HTMLElement; identityTimestampEl: HTMLElement; identityUuidEl: HTMLElement; identityNameEl: HTMLElement; identityDescriptionEl: HTMLElement; identityFrameDetailsEl: HTMLPreElement; identityAggrDetailsEl: HTMLPreElement; poolsContainerEl: HTMLDivElement; btnVerifyChainEl: HTMLButtonElement; btnSetActiveEl: HTMLButtonElement; btnCheckUpdatesEl: HTMLButtonElement; btnUpdateIdentityEl: HTMLButtonElement; syncStatusMsgEl: HTMLDivElement; verificationStatusEl: HTMLDivElement; rawAccordionHeaderEl: HTMLDivElement; rawAccordionContentEl: HTMLDivElement; rawKeystoneJsonEl: HTMLPreElement; delegatesCardEl: HTMLDivElement; delegatesListEl: HTMLTableSectionElement; delegatesAlertsEl?: HTMLDivElement; passkeysCardEl: HTMLDivElement; passkeysListEl: HTMLTableSectionElement; btnAddPasskeyEl: HTMLButtonElement; selectPasskeyAttachmentEl?: HTMLSelectElement; passkeyStatusMsgEl: HTMLDivElement; historicalWarningBannerEl: HTMLDivElement; containerEl: HTMLDivElement; ssoLinkCardEl: HTMLDivElement; btnLinkGoogleEl: HTMLDivElement; btnLinkGithubEl: HTMLDivElement; ssoStatusMsgEl: HTMLDivElement; inputCurrentPasswordEl: HTMLInputElement; inputNewPasswordEl: HTMLInputElement; inputConfirmPasswordEl: HTMLInputElement; btnChangePasswordEl: HTMLButtonElement; changePasswordStatusEl: HTMLDivElement; changePasswordCardEl: HTMLDivElement; sectionAddPasswordOtpEl: HTMLDivElement; inputAddPasswordOtpEl: HTMLInputElement; btnResendAddPasswordOtpEl: HTMLButtonElement; descAddPasswordOtpEl: HTMLParagraphElement; } export declare class KeystoneDetailsComponentInstance extends IbGibDynamicComponentInstanceBase implements IbGibDynamicComponentInstance { /** Identity is device-scoped and mode-agnostic: always use the persistent metaspace. */ protected metaspaceScope: ComponentMetaspaceScope; protected lc: string; private staticIbGib; get ibGib(): KeystoneIbGib_V1 | undefined; private globalActiveAddr; private isHistoricalFrame; private _onIdentityChanged; private keystoneCache; private aggregatedDetails?; private resendCooldownInterval; constructor(); initialize(opts: IbGibDynamicComponentInstanceInitOpts): Promise; disconnected(): Promise; private startResendCooldownTimer; private getKeystoneDetails; created(): Promise; private initHandlers; private toggleAccordion; private setSyncStatus; protected handleCheckForUpdates(): Promise; protected handleUpdateIdentity(): Promise; protected handleVerifyIdentityChain(): Promise; protected handleSetActiveIdentity(): Promise; private setVerificationStatus; private resolveActiveIdentity; loadIbGib(opts?: { getLatest?: boolean; }): Promise; protected renderUI(): Promise; private updateActiveButtonState; private updatePasswordCardView; private updateFrameDetailsView; private clearActiveDetails; private renderChallengePools; private showRemoteDelegateModal; private renderDelegates; protected handleUpdateDelegateSecret({ delegateTjpAddr, info, deviceName, kind }: { delegateTjpAddr: string; info: any; deviceName: string; kind: 'sovereign' | 'passkey' | 'custodial'; }): Promise; protected handleRevokeDelegate(delegateTjpAddr: string, deviceName: string): Promise; private setPasskeyStatus; private renderPasskeys; protected handleAddPasskey(): Promise; protected handleRemovePasskey(credentialId: string): Promise; handleContextUpdated(): Promise; protected handleNewContextChild({ childIbGib }: { childIbGib: IbGib_V1; }): Promise; protected handleSSOLink(providerId: 'google' | 'github'): Promise; private setSSOStatus; protected handleSSOLinkCallback(code: string, stateObj: any, redirectUri: string): Promise; protected handleSSOClick(providerId: 'google' | 'github'): Promise; protected handleSSOUnlink(providerId: 'google' | 'github'): Promise; private setChangePasswordStatus; protected handleAddMasterPassword(): Promise; protected handleResendAddPasswordOtp(): Promise; /** * Common DRY post-elevation workflow: creates and registers the password-based * device sync delegate, synchronizes the evolved identity with the delegate to the server, * updates the local space and special index, and dispatches the identity change event. */ private registerAndSyncSovereignPasswordDelegate; /** * Handles adding a master password to a sovereign identity that was created with passkeys only. * Authorizes via passkey biometric/hardware assertion and cryptographically adds the manage pool. */ protected handleAddPasswordToPasskeyIdentity(): Promise; protected handleChangePassword(): Promise; } export {}; //# sourceMappingURL=keystone-details.d.mts.map