import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Transaction = { index: number; ledgerCanisterId: string; kind: string; amount: string; fromOwner?: string | undefined; fromSubaccount?: string | undefined; fromAccount?: string | undefined; toOwner?: string | undefined; toSubaccount?: string | undefined; toAccount?: string | undefined; spenderOwner?: string | undefined; spenderSubaccount?: string | undefined; spenderAccount?: string | undefined; memo?: string | undefined; fee?: string | undefined; expectedAllowance?: string | undefined; expiresAt?: string | undefined; createdAtTime?: string | undefined; timestamp?: string | undefined; feeCollectorBlock?: number | undefined; updatedAt: Date; }; /** @internal */ export declare const Transaction$inboundSchema: z.ZodType; /** @internal */ export type Transaction$Outbound = { index: number; ledger_canister_id: string; kind: string; amount: string; from_owner?: string | undefined; from_subaccount?: string | undefined; from_account?: string | undefined; to_owner?: string | undefined; to_subaccount?: string | undefined; to_account?: string | undefined; spender_owner?: string | undefined; spender_subaccount?: string | undefined; spender_account?: string | undefined; memo?: string | undefined; fee?: string | undefined; expected_allowance?: string | undefined; expires_at?: string | undefined; created_at_time?: string | undefined; timestamp?: string | undefined; fee_collector_block?: number | undefined; updated_at: string; }; /** @internal */ export declare const Transaction$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 Transaction$ { /** @deprecated use `Transaction$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Transaction$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Transaction$Outbound` instead. */ type Outbound = Transaction$Outbound; } export declare function transactionToJSON(transaction: Transaction): string; export declare function transactionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=transaction.d.ts.map