export declare const ChainNamespace: { readonly Evm: "evm"; readonly Solana: "solana"; }; export type ChainNamespace = (typeof ChainNamespace)[keyof typeof ChainNamespace]; /** Type alias for the EVM namespace literal — used where the type position is needed. */ export type EvmNamespace = typeof ChainNamespace.Evm; /** Type alias for the Solana namespace literal — used where the type position is needed. */ export type SolanaNamespace = typeof ChainNamespace.Solana; export type KeyringWalletEntry = { address: string; name?: string; }; export type KeyringWalletRef = { address: string; } | { name: string; }; /** * Stable wallet id on disk for BYOK mode. New wallets use the `byok:` prefix; * `local:` ids are still accepted when hydrating legacy persisted state. */ export type ByokWalletId = `byok:${N}:${number}` | `local:${N}:${number}`; export type ByokWalletInfo = KeyringWalletEntry & { id: ByokWalletId; namespace: N; index: number; derivationPath: string; }; export type DerivedByokWallet = Omit, "id" | "name"> & { privateKey: `0x${string}`; }; export type DeriveByokWalletOpts = { mnemonic: string; index: number; }; export type MnemonicKeyringInput = { mnemonic: string; wallets?: ByokWalletInfo[]; }; export type ByokWalletRef = { id: string; } | { address: string; } | { name: string; }; export type CreateByokWalletOpts = { namespace?: ChainNamespace; name?: string; };