import { AuthCredentials } from '../types/auth'; import { SecureStorageAdapter } from '../types/keychain'; export declare class KeyChainAdapter implements SecureStorageAdapter { /** * Implements the React Native KeyChain functionality to retrieve the * Dressipi API credentials securely from the keychain. * * @param {string} clientId - The client ID for the Dressipi API. * @param {string} serverUrl - The server URL for the Dressipi API. * @returns {Promise} A promise that resolves to the * Dressipi credentials if found, or null if not found. */ getCredentials(clientId: string, serverUrl: string): Promise; /** * Implements the React Native KeyChain functionality to set the credentials * for the Dressipi API securely in the keychain. * * @param {string} clientId - The client ID for the Dressipi API. * @param {string} serverUrl - The server URL for the Dressipi API. * @param {string} token - The access token for the Dressipi API. * @returns {Promise} A promise that resolves when the * credentials are set. */ setCredentials(clientId: string, serverUrl: string, token: string): Promise; /** * Deletes the credentials for the Dressipi API from the keychain * using the provided serverUrl. * * @param {string} serverUrl - The server URL for the Dressipi API. * @returns {Promise} A promise that resolves when the * credentials are removed. */ removeCredentials(serverUrl: string): Promise; /** * Sets a general key-value pair in the keychain using generic password storage. * * @param {string} key - The key for the data. * @param {string} value - The value to store. * @returns {Promise} A promise that resolves when the data is set. */ setItem(key: string, value: string): Promise; /** * Retrieves a value for a given key from the keychain. * * @param {string} key - The key for the data. * @returns {Promise} A promise that resolves to the * value if found, or null if not found. */ getItem(key: string): Promise; /** * Removes a key-value pair from the keychain. * * @param {string} key - The key for the data to remove. * @returns {Promise} A promise that resolves when the data is removed. */ removeItem(key: string): Promise; }