UNPKG

appium-ios-simulator

Version:
54 lines 2.4 kB
/** * 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. * * @this {CoreSimulatorWithKeychain} * @returns {Promise<boolean>} True if the backup operation was successfull. */ export function backupKeychains(this: CoreSimulatorWithKeychain): Promise<boolean>; export class backupKeychains { _keychainsBackupPath: string | undefined; } /** * Restore the previsouly created keychains backup. * * @this {CoreSimulatorWithKeychain} * @param {string[]} 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 {Promise<boolean>} If the restore opration was successful. * @throws {Error} If there is no keychains backup available for restore. */ export function restoreKeychains(this: CoreSimulatorWithKeychain, excludePatterns?: string[]): Promise<boolean>; export class restoreKeychains { /** * Restore the previsouly created keychains backup. * * @this {CoreSimulatorWithKeychain} * @param {string[]} 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 {Promise<boolean>} If the restore opration was successful. * @throws {Error} If there is no keychains backup available for restore. */ constructor(this: CoreSimulatorWithKeychain, excludePatterns?: string[]); _keychainsBackupPath: any; } /** * Clears Keychains for the particular simulator in runtime (there is no need to stop it). * * @this {CoreSimulatorWithKeychain} * @returns {Promise<void>} * @throws {Error} If keychain cleanup has failed. */ export function clearKeychains(this: CoreSimulatorWithKeychain): Promise<void>; export type CoreSimulatorWithKeychain = import("../types").CoreSimulator & import("../types").InteractsWithKeychain; //# sourceMappingURL=keychain.d.ts.map