/** * Password interface implemented in the native code. */ export interface PowerAuthPasswordIfc { /** * Initialize native password object. * @param destroyOnUse If `true`, then native password will be destroyed after its use for the cryptographic operation. * @param ownerId If specified, then native password will be destroyed together with owning PowerAuth instance. * @param autoreleaseTime Defines autorelease timeout in milliseconds. The value is used only for the testing purposes, and is ignored in the release build of library. * @returns Underlying native object identifier. */ initialize(destroyOnUse: boolean, ownerId: string | undefined, autoreleaseTime: number): Promise; /** * Release native password object. * @param objectId Underlying object identifier. */ release(objectId: string): Promise; /** * Clear password content. * @param objectId Underlying object identifier. */ clear(objectId: string): Promise; /** * Get number of stored characters. * @param objectId Underlying object identifier. */ length(objectId: string): Promise; /** * Compare two passwords. * @param objectId1 Underlying object identifier. * @param objectId2 Underlying object identifier. */ isEqual(objectId1: string, objectId2: string): Promise; /** * Add character at the end of password and return the number of stored characters. * @param objectId Underlying object identifier. * @param character Character to add */ addCharacter(objectId: string, character: number): Promise; /** * Insert character at the specified position and return the number of stored characters. * @param objectId Underlying object identifier. * @param character Character to add. * @param position Position where character will be added. */ insertCharacter(objectId: string, character: number, position: number): Promise; /** * Remove character at given position. * @param objectId Underlying object identifier. * @param position */ removeCharacter(objectId: string, position: number): Promise; /** * Remove last character. * @param objectId Underlying object identifier. */ removeLastCharacter(objectId: string): Promise; } export declare const NativePassword: PowerAuthPasswordIfc;