import { MealieClient } from '../client.js'; import type { AuthToken } from '../types/index.js'; export interface OAuthInitResponse { redirectUrl: string; } export interface OAuthCallbackParams { code?: string; state?: string; error?: string; error_description?: string; } export interface TokenRefreshResponse extends AuthToken { refresh_token?: string; } export interface LogoutResponse { success: boolean; } export declare class AuthService extends MealieClient { /** * Authenticate with username and password * This is the same as client.authenticate() but moved here for consistency */ login(username: string, password: string): Promise; /** * Initiate OAuth login flow * Returns the URL to redirect the user to for OAuth authentication */ oauthLogin(): Promise; /** * Handle OAuth callback * This endpoint processes the OAuth callback parameters */ oauthCallback(params: OAuthCallbackParams): Promise; /** * Refresh the authentication token */ refreshToken(): Promise; /** * Logout the current user */ logout(): Promise; } //# sourceMappingURL=auth.d.ts.map