/** * API helper functions for the Opik wizard */ export interface AccountDetails { defaultWorkspaceName: string; } export declare const DEFAULT_LOCAL_URL = "http://localhost:5173/"; export declare const MAX_URL_VALIDATION_RETRIES = 3; /** * Fetches the default workspace name for the given API key * @param apiKey - The Opik API key * @param baseUrl - The base URL of the Opik instance (defaults to cloud URL) * @returns The default workspace name * @throws Error if the request fails or the workspace name is not found */ export declare function getDefaultWorkspace(apiKey: string, baseUrl?: string): Promise; /** * Validates if a URL is properly formatted * @param url - The URL to validate * @returns True if the URL is valid, false otherwise */ export declare function isValidUrlFormat(url: string): boolean; /** * Checks if an Opik instance is accessible at the given URL * @param url - The URL to check * @param timeoutMs - Request timeout in milliseconds (default: 5000) * @returns True if Opik is accessible, false otherwise */ export declare function isOpikAccessible(url: string, timeoutMs?: number): Promise; /** * Validates and normalizes an Opik URL * @param url - The URL to validate * @returns Normalized URL with trailing slash * @throws Error if URL format is invalid */ export declare function normalizeOpikUrl(url: string): string; //# sourceMappingURL=api-helpers.d.ts.map