UNPKG

e621-sdk

Version:

从E621抓取帖子。支持搜索、引用、随机。

10 lines (9 loc) 596 B
import { E621 } from "./client"; import { SearchTag } from "./structs"; export declare const baseUrl = "https://e621.net"; export declare function useApi(url: string, client: E621): string; export declare function toSearchTag(...names: string[] | SearchTag[]): string; export declare function fromSearchTag(tag: string | SearchTag): string[]; export declare function query(data: Record<string, string | number | undefined>): string; export declare function truncate(str: string, maxLength: number): string; export declare function formatArrayBuffer(ab: ArrayBuffer, fn: string): string;