import type { ApiKeyCreateResponse, ApiKeyRevokeResponse, ApiKeysListResponseItem, CurrentUserInfoResponse, Organization, RegionResponse } from "../../client/types.gen.js"; import type { CallOptions, RequestContext } from "../context.js"; import type { Outcome } from "../result.js"; export type ApiKeysCreateParams = { keyName: string; }; export type ApiKeysRevokeParams = { keyId: number; }; /** Current user / account resource. */ export declare class User { #private; constructor(ctx: RequestContext); /** @apiCall GET /users/me */ me(): Promise>; me(opts: CallOptions): Promise>; /** @apiCall GET /users/me/organizations */ organizations(): Promise>; organizations(opts: CallOptions): Promise>; } /** Active regions. */ export declare class Regions { #private; constructor(ctx: RequestContext); /** @apiCall GET /regions */ list(): Promise>; list(opts: CallOptions): Promise>; } /** Account API keys. */ export declare class ApiKeys { #private; constructor(ctx: RequestContext); /** @apiCall GET /api_keys */ list(): Promise>; list(opts: CallOptions): Promise>; /** * Create an API key. The returned `key` token is shown **once** — store it now. * * @apiCall POST /api_keys */ create(params: ApiKeysCreateParams): Promise>; create(params: ApiKeysCreateParams, opts: CallOptions): Promise>; /** @apiCall DELETE /api_keys/{key_id} */ revoke(params: ApiKeysRevokeParams): Promise>; revoke(params: ApiKeysRevokeParams, opts: CallOptions): Promise>; } //# sourceMappingURL=account.d.ts.map