UNPKG

internetarchive-sdk-js

Version:

NodeJS / Typescript SDK for Internet Archive APIs

7 lines (6 loc) 640 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>, R extends A & (Required<Pick<A, K1>> & Record<K2, undefined> | Required<Pick<A, K2>> & Record<K1, undefined>)>(key1: K1, key2: K2): ((arg: A, ctx: RefinementCtx) => arg is R);