import type { Chain } from '../../../chain';
import type { WalletSchema } from '../../legacyWalletBook.types';
type ExtractChainPrefixParams = {
    chainIdentifier: string;
};
/**
 * Extracts the chain prefix from a chain identifier string.
 * For example, "eip155:1" -> "eip155", "solana:..." -> "solana"
 *
 * Exported so {@link getChainsFromWalletSchema} can apply the same
 * parsing to its multi-chain pass without duplicating the logic.
 * @notInstrumented
 */
export declare const extractChainPrefix: ({ chainIdentifier, }: ExtractChainPrefixParams) => string;
type GetChainFromWalletSchemaParams = {
    wallet: WalletSchema;
    walletKey?: string;
};
/**
 * Gets the chain from a wallet book entry.
 * Checks injectedConfig first, then falls back to the chains array, then the wallet key.
 * If no chain can be determined, defaults to EVM.
 *
 * @param params.wallet - The wallet schema from the wallet book.
 * @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
 * @returns The chain type, defaults to EVM if no chain can be determined.
  * @notInstrumented
 */
export declare const getChainFromWalletSchema: ({ wallet, walletKey, }: GetChainFromWalletSchemaParams) => Chain;
export {};
//# sourceMappingURL=getChainFromWalletSchema.d.ts.map