import { WebPlugin } from '@capacitor/core'; import type { DataType, SecureStoragePlugin } from './definitions.js'; import { KeychainAccess } from './definitions.js'; export interface SecureStoragePluginNative { setSynchronizeKeychain: (options: { sync: boolean; }) => Promise; setDefaultKeychainAccess: (options: { access: string; }) => Promise; internalGetItem: (options: { prefixedKey: string; }) => Promise<{ data: string; }>; internalSetItem: (options: { prefixedKey: string; data: string; access: KeychainAccess; }) => Promise; internalRemoveItem: (options: { prefixedKey: string; }) => Promise<{ success: boolean; }>; internalClearItemsWithPrefix: (options: { prefix: string; }) => Promise; getPrefixedKeys: (options: { prefix: string; }) => Promise<{ keys: string[]; }>; } export declare abstract class SecureStorageBase extends WebPlugin implements SecureStoragePlugin { protected prefix: string; protected sync: boolean; protected access: KeychainAccess; setSynchronize(sync: boolean): Promise; getSynchronize(): Promise; protected abstract setSynchronizeKeychain(options: { sync: boolean; }): Promise; setDefaultKeychainAccess(access: KeychainAccess): Promise; protected tryOperation(operation: () => Promise): Promise; get(key: string, convertDate?: boolean, sync?: boolean): Promise; getItem(key: string): Promise; protected abstract internalGetItem(options: { prefixedKey: string; sync: boolean; }): Promise<{ data: string | null; }>; set(key: string, data: DataType, convertDate?: boolean, sync?: boolean, access?: KeychainAccess): Promise; setItem(key: string, value: string): Promise; protected abstract internalSetItem(options: { prefixedKey: string; data: string; sync: boolean; access: KeychainAccess; }): Promise; remove(key: string, sync?: boolean): Promise; removeItem(key: string): Promise; protected abstract internalRemoveItem(options: { prefixedKey: string; sync: boolean; }): Promise<{ success: boolean; }>; abstract clear(sync?: boolean): Promise; clearItemsWithPrefix(options: { prefix: string; sync: boolean; }): Promise; protected abstract internalClearItemsWithPrefix(options: { prefix: string; sync: boolean; }): Promise; checkPrefix(prefix: string): string; keys(sync?: boolean): Promise; protected abstract internalGetPrefixedKeys(options: { prefix: string; sync: boolean; }): Promise<{ keys: string[]; }>; getKeyPrefix(): Promise; setKeyPrefix(prefix: string): Promise; protected prefixedKey(key: string): string; protected static missingKey(): never; }