import type { HttpClient } from "../cli/http.js"; export interface PoeAuthIdentity { user_id: number; handle: string; name: string; profile_picture: string; [key: string]: unknown; } export interface FetchPoeAuthIdentityOptions { apiKey: string; baseUrl?: string; httpClient?: HttpClient; } export interface GetPoeAuthIdentityOptions { apiKey?: string; baseUrl?: string; variables?: Record; httpClient?: HttpClient; } /** * Reads the Poe API key with the following priority: * 1. `POE_API_KEY` environment variable (if set) * 2. Auth store (`auth-store`) * * @returns The API key * @throws AuthenticationError if no credentials found */ export declare function getPoeApiKey(): Promise; export declare function ensurePoeApiKeyEnv(): Promise; export declare function getPoeAuthIdentity(options?: GetPoeAuthIdentityOptions): Promise; export declare function fetchPoeAuthIdentity(options: FetchPoeAuthIdentityOptions): Promise;