export interface Prompt { id: string; name: string; description: string; content: string; tags: string[]; author: string; createdAt: string; updatedAt: string; } export interface SearchResult { prompts: Prompt[]; total: number; } export interface ApiErrorResponse { message: string; code?: string; statusCode?: number; } declare class GitiziAPI { private baseUrl; constructor(); /** * Invokes a Supabase Edge Function with direct fetch * Sends user token in Authorization: Bearer header if authenticated * Otherwise uses anon key */ private invokeFunction; /** * Formats error messages from API responses */ private formatError; authenticate(token: string): Promise<{ success: boolean; username: string; }>; searchPrompts(query: string, limit?: number): Promise; getPrompt(id: string): Promise; createPrompt(data: { name: string; description: string; content: string; tags: string[]; }): Promise; updatePrompt(id: string, data: { name?: string; description?: string; content?: string; tags?: string[]; }): Promise; listUserPrompts(): Promise; getCurrentUser(): Promise<{ username: string; email?: string; }>; } declare const _default: GitiziAPI; export default _default; //# sourceMappingURL=api.d.ts.map