import { PublicKeyResponse, PrivateKeyResponse, KeyUsageResponse } from "../types"; import { OptionalStringMap } from "../util"; import { Client } from "../client"; import { HttpResponse } from "../agent"; export interface RetrieveQuery extends OptionalStringMap { user_token?: string; } export interface RetrieveUsageQuery extends RetrieveQuery { start?: string; end?: string; tags?: string; licensee?: string; } interface Header extends OptionalStringMap { Authorization?: string; } export interface Request { query?: RetrieveQuery; header?: Header; timeout?: number; } export interface UsageRequest extends Request { query?: RetrieveUsageQuery; } export declare type KeyResponse = PublicKeyResponse | PrivateKeyResponse; export interface Response extends HttpResponse { body: KeyResponse; } export interface UsageResponse extends HttpResponse { body: KeyUsageResponse; } export interface Retrieve { (client: Client, apiKey: string, request: Request): Promise; } export declare const retrieve: Retrieve; export interface Usage { (client: Client, apiKey: string, request: UsageRequest): Promise; } export declare const usage: Usage; export {};