import { ErrorCodes, GenerateNewShareResult, IModule, ISerializable, ITKeyApi, ITkeyError, PolynomialID, PublicShare, SecurityQuestionStoreArgs, ShareStoreMap, StringifiedType, TkeyError } from "@tkey/common-types"; declare class SecurityQuestionsError extends TkeyError { protected static messages: ErrorCodes; constructor(code: number, message?: string); static fromCode(code: number, extraMessage?: string): ITkeyError; static unavailable(extraMessage?: string): ITkeyError; static unableToReplace(extraMessage?: string): ITkeyError; static incorrectAnswer(extraMessage?: string): ITkeyError; static noPasswordSaved(extraMessage?: string): ITkeyError; } export declare const SECURITY_QUESTIONS_MODULE_NAME = "securityQuestions"; declare class SecurityQuestionsModule implements IModule { moduleName: string; tbSDK: ITKeyApi; saveAnswers: boolean; constructor(saveAnswers?: boolean); static refreshSecurityQuestionsMiddleware(generalStore: unknown, oldShareStores: ShareStoreMap, newShareStores: ShareStoreMap): unknown; setModuleReferences(tbSDK: ITKeyApi): void; initialize(): Promise; generateNewShareWithSecurityQuestions(answerString: string, questions: string): Promise; getSecurityQuestions(): string; inputShareFromSecurityQuestions(answerString: string): Promise; changeSecurityQuestionAndAnswer(newAnswerString: string, newQuestions: string): Promise; saveAnswerOnTkeyStore(answerString: string): Promise; getAnswer(): Promise; } declare class SecurityQuestionStore implements ISerializable { nonce: bigint; shareIndex: bigint; sqPublicShare: PublicShare; polynomialID: PolynomialID; questions: string; constructor({ nonce, shareIndex, sqPublicShare, polynomialID, questions }: SecurityQuestionStoreArgs); static fromJSON(value: StringifiedType): SecurityQuestionStore; toJSON(): StringifiedType; } export { SecurityQuestionStore, SecurityQuestionsError, SecurityQuestionsModule }; //# sourceMappingURL=index.d.ts.map