UNPKG

internetarchive-sdk-js

Version:

NodeJS / Typescript SDK for Internet Archive APIs

7 lines (6 loc) 523 B
import { z, type RefinementCtx } from 'zod'; export declare function getPackageInfo(): Promise<import("pkg-types").PackageJson | null>; export declare function generateItemIdFromMetadata(metadata: Record<string, string>): string; export declare function isASCII(str: string): boolean; export declare function parseZodErrorToString(err: z.ZodError): string; export declare function oneOf<A, K1 extends Extract<keyof A, string>, K2 extends Extract<keyof A, string>>(key1: K1, key2: K2): (arg: A, ctx: RefinementCtx) => void;