import { PublicKey } from "@solana/web3.js"; /** * User profile state structure */ export interface UserProfile { owner: PublicKey; nickname: string; bump: number; } /** * Derive the user profile PDA for a wallet * * @param wallet - User's wallet public key * @returns User profile PDA public key * * @example * ```typescript * const profilePda = getUserProfileAddress(wallet.publicKey); * const accountInfo = await connection.getAccountInfo(profilePda); * ``` */ export declare function getUserProfileAddress(wallet: PublicKey): PublicKey; /** * Derive the user profile PDA with bump * * @param wallet - User's wallet public key * @returns Tuple of [PDA, bump] */ export declare function getUserProfileAddressWithBump(wallet: PublicKey): [PublicKey, number]; /** * Parse a UserProfile account from raw buffer data * * @param data - Raw account data buffer (excluding 8-byte discriminator) * @returns Parsed UserProfile object * @throws Error if buffer is too small * * @example * ```typescript * const profilePda = getUserProfileAddress(wallet); * const accountInfo = await connection.getAccountInfo(profilePda); * if (accountInfo) { * const profile = parseUserProfileAccount(accountInfo.data.slice(8)); * } * ``` */ export declare function parseUserProfileAccount(data: Uint8Array): UserProfile; //# sourceMappingURL=userProfile.d.ts.map