import { SupabaseProject, CreateProjectRequest, ProjectApiKeys, Organization } from '../../types/provisioning'; export declare class SupabaseManagementError extends Error { readonly status?: number; readonly requiresReauth: boolean; constructor(message: string, status?: number, requiresReauth?: boolean); } export declare class SupabaseManagementClient { private baseUrl; private logger; private auth; constructor(); /** * Makes authenticated request to Supabase Management API with automatic token refresh * EXACT PORT from frontend with CLI error handling */ private makeRequest; /** * Lists all organizations the user has access to * EXACT PORT from frontend */ listOrganizations(): Promise; /** * Lists all projects in an organization * EXACT PORT from frontend */ listProjects(organizationId?: string): Promise; /** * Creates a new Supabase project * EXACT PORT from frontend */ createProject(projectData: CreateProjectRequest): Promise; /** * Gets a specific project by reference * EXACT PORT from frontend */ getProject(projectRef: string): Promise; /** * Gets API keys for a project * EXACT PORT from frontend */ getProjectApiKeys(projectRef: string): Promise; /** * Executes SQL on a project's database * EXACT PORT from frontend */ executeSQL(projectRef: string, sql: string): Promise; /** * Gets project configuration * EXACT PORT from frontend */ getProjectConfig(projectRef: string): Promise; /** * Updates project configuration * EXACT PORT from frontend */ updateProjectConfig(projectRef: string, config: any): Promise; /** * Deletes a project * EXACT PORT from frontend */ deleteProject(projectRef: string): Promise; /** * Checks if user has valid authentication * EXACT PORT from frontend */ isAuthenticated(): Promise; /** * Gets user profile information * EXACT PORT from frontend */ getUserProfile(): Promise; /** * Pause a project */ pauseProject(projectRef: string): Promise; /** * Resume a project */ resumeProject(projectRef: string): Promise; /** * Get project database settings */ getProjectDatabase(projectRef: string): Promise; /** * Health check for the management client */ healthCheck(): Promise; /** * Test connection and return user info */ testConnection(): Promise<{ isAuthenticated: boolean; organizationCount: number; userProfile?: any; error?: string; }>; }