import { Authenticator, HttpClient } from '@sisense/sdk-rest-client'; export declare const HEADER_SISENSE_EMBED = "x-sisense-embed"; /** Value for {@link HEADER_SISENSE_EMBED} when the app runs inside an iframe. */ export declare const SISENSE_EMBED_IFRAME = "iframe"; export declare const DEFAULT_HEADERS: { 'x-sisense-ai': string; 'x-sisense-origin': string; }; /** * True when running in a browser inside an iframe (including cross-origin embeds * where comparing to `top` may throw — treated as embedded). */ export declare function isEmbeddedInIframe(): boolean; /** Default telemetry headers for AI SDK HTTP and completion requests. */ export declare function getDefaultHttpHeaders(): Record; export type AuthenticatorConfig = { url: string; username?: string; password?: string; token?: string | null; wat?: string | null; ssoEnabled?: boolean; enableSilentPreAuth?: boolean; useFusionAuth?: boolean; alternativeSsoHost?: string; }; /** * Factory function to create an HTTP client from an authenticator * @param url - The URL to use for the HTTP client * @param authenticator - The authenticator to use for the HTTP client * @returns Configured HttpClient instance */ export declare function createHttpClientFromAuthenticator(url: string, authenticator: Authenticator, headers?: Record): HttpClient; /** * Factory function to create an HTTP client from an authenticator configuration * @param config - Authenticator configuration * @returns Configured HttpClient instance */ export declare function createHttpClientFromConfig(config: AuthenticatorConfig, headers?: Record): HttpClient; /** * Extracts HTTP status code from various error shapes (Axios, fetch, custom). */ export declare function getHttpErrorStatus(error: unknown): number | undefined; //# sourceMappingURL=http-client.d.ts.map