import { type Modules } from "./modules/index.js"; import type { Client } from "./generated/client/types.js"; export type * from "./modules/index.js"; export * from "./models/index.js"; export * from "./errors.js"; export * as Generated from "./generated.js"; /** @category Main */ export interface Options { /** * The api key you want to authenticate with (Account -> Manage API Access) * @default none */ authKey?: string; /** * The uername of the user you want to authenticate with * @default none */ authUser?: string; /** * The base URL for the API. * @default https://e621.net */ baseURL?: string; /** * The number of seconds before a request times out * @default 30 */ requestTimeout?: number; /** * The url to use for status checks. * @default https://status.e621.church/json */ statusCheckURL?: string; /** * The user agent to use for requests * @defaultWithoutAuthentication E621/\{version\} (+https://github.com/DonovanDMC/E621) * @defaultWithAuthentication E621/\{version\} (+https://github.com/DonovanDMC/E621; \{authUser\}) */ userAgent?: string; } /** @category Main */ interface InstanceOptions { authKey: string | null; authUser: string | null; baseURL: string; requestTimeout: number; statusCheckURL: string; userAgent: string; } interface E621 extends Modules { } /** @category Main */ declare class E621 { client: Client; options: InstanceOptions; constructor(options?: Options); } export default E621;