import type { SignedMessage, SignMessageParams } from "@near-wallet-selector/core"; import type { SignedTransaction as NearSignedTransaction, Transaction as NearTransaction } from "@near-js/transactions"; import type { PublicKey as NearPublicKey } from "@near-js/crypto"; interface NightlyAccount { accountId: string; publicKey: NearPublicKey; } export interface NearNightly { account: NightlyAccount; isConnected: boolean; signMessage: (params: SignMessageParams) => Promise; signTransaction: (transaction: NearTransaction) => Promise; signAllTransactions: (transaction: Array) => Promise>; connect: (onAccountChange?: (acc?: NightlyAccount) => void, eagerConnect?: boolean) => Promise; disconnect: () => Promise; } export interface InjectedNightly { near: NearNightly; invalidate: () => void; } export {};