import { VersionedTransaction } from '@solana/web3.js';
import { Packet } from '../../gen/block-engine/packet';
export type Result<T, E> = {
    ok: true;
    value: T;
} | {
    ok: false;
    error: E;
};
export declare function Ok<T, E>(value: T): Result<T, E>;
export declare function Err<T, E>(error: E): Result<T, E>;
export declare const unixTimestampFromDate: (date: Date) => number;
export declare const deserializeTransactions: (packets: Packet[]) => VersionedTransaction[];
export declare const serializeTransactions: (txs: VersionedTransaction[]) => Packet[];
export declare const isError: <T>(value: T | Error) => value is Error;
