import type { Context } from 'koa';
import { errors } from '@strapi/utils';
declare const UnauthorizedError: typeof errors.UnauthorizedError;
export declare const extractToken: (ctx: Context) => string | null;
export declare const checkExpiry: (apiToken: {
    expiresAt?: string | number | null;
}) => InstanceType<typeof UnauthorizedError> | null;
export declare const updateLastUsedAt: (apiToken: {
    id: number | string;
    lastUsedAt?: string | null;
}) => Promise<void>;
export {};
//# sourceMappingURL=api-token-utils.d.ts.map