import { OnairosCredentials } from './secureStorage'; export interface ApiResponse { success: boolean; data?: T; error?: { code: string; message: string; details?: any; }; } export type ApiErrorType = 'network_error' | 'timeout_error' | 'auth_error' | 'server_error' | 'validation_error' | 'unknown_error'; export declare class ApiError extends Error { type: ApiErrorType; code?: string; details?: any; constructor(message: string, type: ApiErrorType, code?: string, details?: any); } /** * Validate user credentials with the API (uses JWT) */ export declare const validateCredentials: (username: string, options?: { debug: boolean; }) => Promise<{ isValid: boolean; message?: string; }>; /** * Create a new user account (uses developer API key) */ export declare const createAccount: (credentials: Partial, options?: { debug: boolean; }) => Promise>; /** * Authenticate with the API using credentials (uses JWT) */ export declare const authenticate: (credentials: Partial, options?: { debug: boolean; }) => Promise>; /** * Refresh authentication token (uses JWT) */ export declare const refreshToken: (refreshToken: string, options?: { debug: boolean; }) => Promise>; /** * Get user's connected platform data (uses JWT) */ export declare const getPlatformData: (platform: string, options?: { debug: boolean; }) => Promise>; /** * Get user profile information (uses JWT) */ export declare const getUserProfile: (options?: { debug: boolean; }) => Promise>; /** * Update user platform connections (uses JWT) */ export declare const updatePlatformConnections: (platforms: Record, options?: { debug: boolean; }) => Promise>; /** * Store user PIN (uses JWT and extracts username from JWT) */ export declare const storePIN: (pin: string, options?: { debug?: boolean; username?: string; }) => Promise>; /** * Get current JWT token */ export declare const getCurrentUserToken: () => Promise; /** * Check if user is authenticated with JWT */ export declare const isCurrentUserAuthenticated: () => boolean; //# sourceMappingURL=onairosApi.d.ts.map