import { type ProgramMetadata } from '../metadata'; import type { HexString } from '../types'; export declare function getRegistry(metaOrHexRegistry: HexString): HexString; export declare function encodePayload(payload: unknown, hexRegistryOrMeta: HexString | ProgramMetadata, type: string, typeIndexOrPayloadType?: number | string): Array;