postchain-client
Version:
Client library for accessing a Postchain node through REST.
13 lines (12 loc) • 463 B
TypeScript
import { z } from "zod";
import { ValidationOptions } from "./validation.types";
export declare const BlockIdentifierSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNumber]>;
export declare const isBlockIdentifierValid: (blockIdentifier: unknown, options?: ValidationOptions) => {
success: boolean;
error?: undefined;
message?: undefined;
} | {
success: boolean;
error: z.ZodError<string | number>;
message: string;
};