import type { ApiRequestInit, ApiResponseJSON } from '../instance/coreApiClient'; import type { AuthCookieManager, TernSecureAuth } from './internal'; export type HTTPMethod = 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE'; export type PostMutateParams = { action?: string | undefined; body?: any; method?: HTTPMethod | undefined; path?: string; }; export declare abstract class TernSecureBase { static ternsecure: TernSecureAuth; static get apiUrl(): string; static get authCookieManager(): AuthCookieManager | undefined; protected get authCookieManager(): AuthCookieManager | undefined; /** * Core method to fetch data from API endpoints using coreApiClient * This method handles the complete request lifecycle including error handling */ static fetchFromCoreApi(requestInit: ApiRequestInit): Promise | null>; /** * Convenience method for making POST requests */ static basePost(params: PostMutateParams): Promise | null>; /** * Instance method to fetch data from API endpoints */ protected fetchFromCoreApi(requestInit: ApiRequestInit): Promise | null>; /** * Instance method for making POST requests */ protected basePost(params: PostMutateParams): Promise | null>; /** * Protected instance method for making POST requests with specific path and body * This is designed to be used by child classes like SignIn */ protected _post(params: PostMutateParams): Promise | null>; static makeApiRequest(requestInit: ApiRequestInit): Promise | null>; protected makeApiRequest(requestInit: ApiRequestInit): Promise | null>; } //# sourceMappingURL=Base.d.ts.map