import { Context } from 'koa'; import { OpenAPIV3 } from 'openapi-types'; import { Promisable } from 'type-fest'; import { SecurityCheck } from './types'; export declare type GetApiKeyUser = (apiKey: string, ctx: Context) => Promisable; /** * Get a user based on an apiKey security scheme. * * @param scheme - The OpenAPI security scheme. * @param userGetter - A function for getting a user. * @returns A tuple containing just the user. */ export declare function apiKeySecurityCheck(scheme: OpenAPIV3.ApiKeySecurityScheme, userGetter: GetApiKeyUser): SecurityCheck;