import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Block = { index: number; ledgerCanisterId: string; blockHash: string; blockPhash?: string | undefined; transactionHash: string; kind: string; amount: number; fromOwner?: string | undefined; fromSubaccount?: string | undefined; fromAccount?: string | undefined; toOwner?: string | undefined; toSubaccount?: string | undefined; toAccount?: string | undefined; memo: string; fee?: number | undefined; timestamp?: string | undefined; updatedAt: string; }; /** @internal */ export declare const Block$inboundSchema: z.ZodType; /** @internal */ export type Block$Outbound = { index: number; ledger_canister_id: string; block_hash: string; block_phash?: string | undefined; transaction_hash: string; kind: string; amount: number; from_owner?: string | undefined; from_subaccount?: string | undefined; from_account?: string | undefined; to_owner?: string | undefined; to_subaccount?: string | undefined; to_account?: string | undefined; memo: string; fee?: number | undefined; timestamp?: string | undefined; updated_at: string; }; /** @internal */ export declare const Block$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Block$ { /** @deprecated use `Block$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Block$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Block$Outbound` instead. */ type Outbound = Block$Outbound; } export declare function blockToJSON(block: Block): string; export declare function blockFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=block.d.ts.map