import { type KeyStoreExtension } from "@algorandfoundation/keystore"; import type { Extension } from "@algorandfoundation/wallet-provider"; /** * Wallet Provider Extension that adds Keystore functionality. * * It wraps a {@link KeyStoreAPI} to provide reactive state for keys and status, * and adds a hook system for intercepting operations. * * @param provider * @param options - Extension options * @param options.keystore.extension - The {@link KeyStoreAPI} extension configuration * @param options.api.keystore - The concrete {@link KeyStoreAPI} implementation to wrap * * @returns The {@link KeyStoreExtension} surface with reactive `keys` and an augmented `keystore` API. * * @example * ```typescript * const ProviderWithKeystore = Provider.withExtensions([WithKeyStore]); * const provider = new ProviderWithKeystore({ * api: { keystore: myKeystoreAPI } * }); * * // Add hooks * provider.keystore.hooks.before("signing", ({ id }) => { * console.log("About to sign with", id) * }) * ``` */ export declare const WithKeyStore: Extension; //# sourceMappingURL=extension.d.ts.map