import type { Cursor, Page, Stake, StakeAction } from "@ledgerhq/coin-module-framework/api/types"; import type { ChainAPI } from "../network"; import { type StakeAccount } from "../network/chain/stake-activation/rpc"; import type { SolanaStake } from "../types"; export { getStakeAccounts, type StakeAccount } from "../network/chain/stake-activation/rpc"; export declare function getStakes(api: ChainAPI, address: string, _cursor?: Cursor): Promise>; export declare function computeFrameworkStakeActions(stakeAccount: StakeAccount, mainAccountAddress: string, epoch: number): StakeAction[]; /** * Compute the SOL reserve that must be kept in the main account to cover * future unstaking transaction fees (undelegate + withdraw per stake). * * "active" and "activating" stakes require both deactivating + withdrawing steps. * "inactive" and "deactivating" stakes require withdrawing only. */ export declare function computeUnstakeReserve(api: ChainAPI, address: string, stakeAccounts: StakeAccount[]): Promise; /** * Convert raw on-chain stake accounts into the legacy {@link SolanaStake} type * used throughout the UI (LLD, LLM) and the legacy bridge. */ export declare function mapStakeAccountsToSolanaStakes(stakeAccounts: StakeAccount[], mainAccAddress: string, epoch: number): SolanaStake[]; //# sourceMappingURL=getStakes.d.ts.map