/** * CSS Account API helpers for CLI commands. * * Wraps the CSS .account/* endpoints used by login, credential management, etc. */ export interface AccountControls { pod?: string; clientCredentials?: string; webId?: string[]; } export interface AccountData { controls: AccountControls; pods: Record; webIds: Record; clientCredentials: Record; } export interface ClientCredential { id: string; secret?: string; label?: string; webId?: string; } type FetchLike = typeof fetch; /** * Check if the CSS server is reachable. */ export declare function checkServer(baseUrl?: string, fetchFn?: FetchLike): Promise; /** * Login with email/password, returns a CSS account token. */ export declare function login(email: string, password: string, baseUrl?: string, fetchFn?: FetchLike): Promise; /** * Fetch account controls (endpoints for pod/credential management). */ export declare function getAccountControls(token: string, baseUrl?: string, fetchFn?: FetchLike): Promise; /** * Fetch full account data including pods, webIds, and credentials. */ export declare function getAccountData(token: string, baseUrl?: string, fetchFn?: FetchLike): Promise; /** * Create a new pod for the account. */ export declare function createPod(token: string, podEndpoint: string, podName: string, fetchFn?: FetchLike): Promise<{ podUrl: string; webId: string; } | null>; /** * Create a new client credential bound to a WebID. */ export declare function createClientCredentials(token: string, credentialsUrl: string, webId: string, name?: string, fetchFn?: FetchLike): Promise; /** * List all client credentials for the account. */ export declare function listClientCredentials(token: string, baseUrl?: string, fetchFn?: FetchLike): Promise; /** * Revoke (delete) a client credential by its ID. */ export declare function revokeClientCredential(token: string, credentialId: string, baseUrl?: string, fetchFn?: FetchLike): Promise; export {};