import { HttpStatus } from '@nestjs/common';
import { DatabaseService } from '../../config';
import { CreateIpWhitelistDto, UpdateIpWhitelistDto } from './ip-whitelist.dto';
export declare class IpWhitelistService {
    private readonly db;
    constructor(db: DatabaseService);
    normalizeIp(ip: string | undefined | null): string;
    private matchIpOrCidr;
    isIpAllowed(ownerId: string, clientIp: string): Promise<boolean>;
    getAll(owner_id: string): Promise<{
        status: HttpStatus;
        message: string;
        data: {
            id: string;
            owner_id: string;
            ip_or_cidr: string;
            is_active: boolean;
            label?: string;
            created_at?: string;
            updated_at?: string;
        }[];
    }>;
    create(data: CreateIpWhitelistDto, owner_id: string): Promise<{
        status: HttpStatus;
        message: string;
        data: {
            id: string;
            owner_id: string;
            ip_or_cidr: string;
            is_active: boolean;
            label?: string;
            created_at?: string;
            updated_at?: string;
        };
    }>;
    update(id: string, data: UpdateIpWhitelistDto, owner_id: string): Promise<{
        status: HttpStatus;
        message: string;
        data: {
            id: string;
            owner_id: string;
            ip_or_cidr: string;
            is_active: boolean;
            label?: string;
            created_at?: string;
            updated_at?: string;
        };
    }>;
    delete(id: string, owner_id: string): Promise<{
        status: HttpStatus;
        message: string;
    }>;
}
