import { PasswordType, PowerAuthBiometricPrompt } from '../index'; /** * Interface representing a simple native object identified by string identifier. */ export interface PowerAuthRawNativeObject { /** * Object's identifier. */ objectId?: string; } /** * Type representing a simple native password identifier wrapped in the object. * We need this auxiliary object due to a problematic call to passphrase meter. */ export type PowerAuthRawPassword = PowerAuthRawNativeObject; /** * Type representing a raw password object passable to native interface. */ export type PowerAuthRawPasswordType = PowerAuthRawPassword | string; /** * Object representing a data pased to native methods requiring PowerAuthAuthentication * on imput. The `RawAuthentication` must be be created from `PowerAuthAuthentication` * instance. */ export interface PowerAuthRawAuthentication { readonly password?: string | PowerAuthRawPassword; readonly biometricPrompt?: PowerAuthBiometricPrompt; readonly isPersist?: boolean; readonly isBiometry: boolean; isReusable: boolean; biometryKeyId?: string; } /** * Convert public password type into type passable into native interface. * @param password Public password object type. * @returns Raw password object type. */ export declare function toPowerAuthRawPassword(password: PasswordType): Promise;