import { Repository } from 'typeorm';
import { ApiKey } from '../../entities/api-key.entity';
export declare class ApiKeysService {
    private readonly apiKeyRepo;
    constructor(apiKeyRepo: Repository<ApiKey>);
    create(userId: string, name: string): Promise<{
        apiKey: ApiKey;
        rawKey: string;
    }>;
    listByUser(userId: string): Promise<ApiKey[]>;
    revoke(id: string, userId: string): Promise<boolean>;
    delete(id: string, userId: string): Promise<boolean>;
}
