export interface NewCredentialParams { credentialName: string; userName: string; } export abstract class Fido2UserInterfaceService { newSession: (abortController?: AbortController) => Promise; // confirmCredential: (cipherId: string, abortController?: AbortController) => Promise; // pickCredential: (cipherIds: string[], abortController?: AbortController) => Promise; // confirmNewCredential: ( // params: NewCredentialParams, // abortController?: AbortController // ) => Promise; // confirmNewNonDiscoverableCredential: ( // params: NewCredentialParams, // abortController?: AbortController // ) => Promise; // informExcludedCredential: ( // existingCipherIds: string[], // newCredential: NewCredentialParams, // abortController?: AbortController // ) => Promise; } export abstract class Fido2UserInterfaceSession { fallbackRequested = false; aborted = false; confirmCredential: (cipherId: string, abortController?: AbortController) => Promise; pickCredential: (cipherIds: string[], abortController?: AbortController) => Promise; confirmNewCredential: ( params: NewCredentialParams, abortController?: AbortController ) => Promise; confirmNewNonDiscoverableCredential: ( params: NewCredentialParams, abortController?: AbortController ) => Promise; informExcludedCredential: ( existingCipherIds: string[], newCredential: NewCredentialParams, abortController?: AbortController ) => Promise; }