import { RequestOptions } from './types'; import Manage, { ManageConfig } from './Manage'; import Automate, { AutomateConfig } from './Automate'; /** * Build a `FormData` from a plain object for multipart uploads. File fields can * be any value FormData.append accepts natively (Blob, File, Buffer, Uint8Array, * ReadStream under the Node ponyfill). Primitive values are stringified. * * @public */ export declare function toFormData(input: Record): FormData; /** * Base class for generated Automate API sections. Holds a shared `Automate` * client reference so every sub-API uses the same axios instance and auth state. * @public */ export declare class AutomateBaseAPI { #private; /** * Sub-APIs are instantiated by the AutomateAPI aggregator's lazy getters. * Consumers should not call this directly. * @internal */ constructor(client: Automate); protected request(args: RequestOptions): Promise; } /** * Base class for generated Manage API sections. Holds a shared `Manage` * client reference so every sub-API uses the same axios instance and auth state. * @public */ export declare class ManageBaseAPI { #private; /** * Sub-APIs are instantiated by the ManageAPI aggregator's lazy getters. * Consumers should not call this directly. * @internal */ constructor(client: Manage); protected request(args: RequestOptions): Promise; } /** * curried request function * @internal */ export declare const makeRequest: ({ config, api, thisObj, }: { config: ManageConfig | AutomateConfig; api: (args: RequestOptions) => Promise; thisObj: InstanceType; }) => ((args: RequestOptions) => Promise); export interface PaginationConfig { thisObj: InstanceType; } export type PaginationApiMethod = (...args: Args) => Promise; export type PaginationOptions = { pageSize?: number; startPage?: number; }; /** * curried paginate function * @internal */ export declare const makePaginate: ({ thisObj }: PaginationConfig) => (apiMethod: PaginationApiMethod, paginateArgs?: PaginationOptions, ...methodArgs: Args) => Promise; //# sourceMappingURL=BaseAPI.d.ts.map