import { IntelSecurity , IntelSecurityData , IntelSecurityStorage } from '@ionic-native/intel-security' ; export interface IntelSecurityDataOptions { /** Non-empty string. **/ data : String ; /** Tag text.  */ tag ? : String ; /** Valid secure data instance ID. */ extraKey ? : Number ; /** Application access control policy. */ appAccessControl ? : Number ; /** Device locality policy. */ deviceLocality ? : Number ; /** Sensitivity level policy. */ sensitivityLevel ? : Number ; /** Disallow sealed blob access. */ noStore ? : Boolean ; /** Disallow plain-text data access. */ noRead ? : Boolean ; /** Creator unique ID. */ creator ? : Number ; /** Array of owners unique IDs. */ owners ? : Number [ ] ; /** List of trusted web domains. */ webOwners ? : String [ ] ; } export class IntelSecurityMock extends IntelSecurity { type { IntelSecurityStorage } storage : IntelSecurityStorageMock = new IntelSecurityStorageMock ( ) ; type { IntelSecurityData } data : IntelSecurityDataMock = new IntelSecurityDataMock ( ) ; } hidden export class IntelSecurityDataMock extends IntelSecurityData { param options { IntelSecurityDataOptions } returns { Promise < any > } createFromData ( options ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param options param options . sealedData { string } returns { Promise < any > } createFromSealedData ( options ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param instanceID { Number } returns { Promise < string > } getData ( instanceID ) { let response = '' ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param instanceID { any } returns { Promise < any > } getSealedData ( instanceID ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param instanceID { any } returns { Promise < string > } getTag ( instanceID ) { let response = '' ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param instanceID { any } returns { Promise < any > } getPolicy ( instanceID ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param instanceID { any } returns { Promise < Array > } getOwners ( instanceID ) { let response = [ ] ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param instanceID { any } returns { Promise < Number > } getCreator ( instanceID ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param instanceID { any } returns { Promise < Array > } getWebOwners ( instanceID ) { let response = [ ] ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param options param options . instanceID { any } param options . extraKey { Number } returns { Promise < any > } changeExtraKey ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param instanceID { any } returns { Promise < any > } destroy ( instanceID ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; } hidden export class IntelSecurityStorageMock extends IntelSecurityStorage { param options param options . id { String } param options . storageType { Number } returns { Promise < any > } delete ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param options param options . id { String } param options . storageType { Number } param options . extraKey { Number } returns { Promise < Number > } read ( options ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param options param options . id { String } param options . instanceID { Number } param options . storageType { Number } returns { Promise < any > } write ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }