import type { Address } from "viem"; import type { CreditAccountData, GetCreditAccountsOptions, IOnchainSDKPlugin } from "../../sdk/index.js"; import { BasePlugin } from "../../sdk/index.js"; export interface AccountsPluginState { /** * All credit accounts */ accounts: CreditAccountData[]; } export declare class AccountsPlugin extends BasePlugin implements IOnchainSDKPlugin { #private; constructor(options?: GetCreditAccountsOptions, loadOnAttach?: boolean); get accounts(): CreditAccountData[]; get loaded(): boolean; byCreditManager(creditManager: Address): CreditAccountData[]; byPool(pool: Address): CreditAccountData[]; load(force?: boolean): Promise; get state(): AccountsPluginState; hydrate(state: AccountsPluginState): void; }