import type { SuiObjectRef, SuiObjectResponse, SuiParsedData } from "@mysten/sui/client"; /** * A Sui object display with common properties and arbitrary ones. */ export type ObjectDisplay = { [key: string]: string | null; name: string | null; description: string | null; link: string | null; image_url: string | null; thumbnail_url: string | null; project_name: string | null; project_url: string | null; project_image_url: string | null; creator: string | null; }; /** * Validate a `SuiObjectResponse` and return its `.data.bcs.bcsBytes`. */ export declare function objResToBcs(resp: SuiObjectResponse): string; /** * Validate a `SuiObjectResponse` and return its `.data.content`. */ export declare function objResToContent(resp: SuiObjectResponse): SuiParsedData; /** * Validate a `SuiObjectResponse` and return its `.data.display.data` or `null`. */ export declare function objResToDisplay(resp: SuiObjectResponse): ObjectDisplay; /** * Create an `ObjectDisplay` object with all fields set to `null`. */ export declare function newEmptyDisplay(): ObjectDisplay; /** * Validate a `SuiObjectResponse` and return its `.data.content.fields`. */ export declare function objResToFields(resp: SuiObjectResponse): Record; /** * Validate a `SuiObjectResponse` and return its `.data.objectId`. */ export declare function objResToId(resp: SuiObjectResponse): string; /** * Validate a `SuiObjectResponse` and return its owner: an address, object ID, "shared" or "immutable". */ export declare function objResToOwner(resp: SuiObjectResponse): string; /** * Validate a `SuiObjectResponse` and return its `{.data.objectId, .data.digest, .data.version}`. */ export declare function objResToRef(resp: SuiObjectResponse): SuiObjectRef;