UNPKG

@sega-so/sega-sdk

Version:

An SDK for building applications on top of SEGA.

16 lines (13 loc) 448 B
import { Keypair, PublicKey, Signer } from '@solana/web3.js'; type _Owner = Keypair | PublicKey; declare class Owner { private readonly _owner; constructor(owner: _Owner); get publicKey(): PublicKey; get signer(): Signer | undefined; get isKeyPair(): boolean; get isPublicKey(): boolean; static isKeyPair(owner: _Owner): owner is Keypair; static isPublicKey(owner: _Owner): owner is PublicKey; } export { Owner };