UNPKG

appium-ios-simulator

Version:
33 lines 1.49 kB
import type { CoreSimulator, InteractsWithKeychain } from '../types'; type CoreSimulatorWithKeychain = CoreSimulator & InteractsWithKeychain; /** * Create the backup of keychains folder. * The previously created backup will be automatically * deleted if this method was called twice in a row without * `restoreKeychains` being invoked. * * @returns True if the backup operation was successful. */ export declare function backupKeychains(this: CoreSimulatorWithKeychain): Promise<boolean>; /** * Restore the previously created keychains backup. * * @param excludePatterns The list * of file name patterns to be excluded from restore. The format * of each item should be the same as '-x' option format for * 'unzip' utility. This can also be a comma-separated string, * which is going be transformed into a list automatically, * for example: '*.db*,blabla.sqlite' * @returns If the restore operation was successful. * @throws {Error} If there is no keychains backup available for restore. */ export declare function restoreKeychains(this: CoreSimulatorWithKeychain, excludePatterns?: string[] | string): Promise<boolean>; /** * Clears Keychains for the particular simulator in runtime (there is no need to stop it). * * @returns Promise that resolves when keychains are cleared * @throws {Error} If keychain cleanup has failed. */ export declare function clearKeychains(this: CoreSimulatorWithKeychain): Promise<void>; export {}; //# sourceMappingURL=keychain.d.ts.map