import type { Middleware } from 'openapi-fetch';
import type { components } from '../generated/api-types';
import type { AmigoSdkConfig } from '..';
type SignInWithApiKeyResponse = components['schemas']['user__sign_in_with_api_key__Response'];
/** Helper function to trade API key for a bearer token */
export declare function getBearerToken(config: AmigoSdkConfig): Promise<SignInWithApiKeyResponse>;
export declare function createAuthMiddleware(config: AmigoSdkConfig): Middleware;
export {};
