import { Prisma, CustomerType } from '@prisma/client';
import { PrismaService } from "../../../core/database/prisma/prisma.service";
export interface CustomerInput {
    code?: string;
    name: string;
    type?: CustomerType;
    industry?: string;
    countryCode?: string;
    taxId?: string;
    creditLimit?: number;
    currencyCode?: string;
    enabled?: boolean;
}
export declare class CustomerService {
    private readonly prisma;
    constructor(prisma: PrismaService);
    list(query: {
        search?: string;
        type?: CustomerType;
        enabledOnly?: boolean;
    }): Promise<({
        _count: {
            contacts: number;
            addresses: number;
        };
    } & {
        type: import("@prisma/client").$Enums.CustomerType;
        code: string;
        id: string;
        createdAt: Date;
        name: string;
        metadata: Prisma.JsonValue;
        updatedAt: Date;
        deletedAt: Date | null;
        organizationId: string;
        createdById: string;
        taxId: string | null;
        enabled: boolean;
        countryCode: string | null;
        currencyCode: string | null;
        industry: string | null;
        creditLimit: Prisma.Decimal | null;
    })[]>;
    findOne(id: string): Promise<{
        contacts: {
            role: string | null;
            id: string;
            createdAt: Date;
            name: string;
            email: string | null;
            phone: string | null;
            updatedAt: Date;
            isPrimary: boolean;
            customerId: string;
        }[];
        addresses: {
            id: string;
            createdAt: Date;
            updatedAt: Date;
            state: string | null;
            isDefault: boolean;
            city: string | null;
            countryCode: string | null;
            customerId: string;
            addressType: string;
            line1: string;
            line2: string | null;
            postalCode: string | null;
        }[];
    } & {
        type: import("@prisma/client").$Enums.CustomerType;
        code: string;
        id: string;
        createdAt: Date;
        name: string;
        metadata: Prisma.JsonValue;
        updatedAt: Date;
        deletedAt: Date | null;
        organizationId: string;
        createdById: string;
        taxId: string | null;
        enabled: boolean;
        countryCode: string | null;
        currencyCode: string | null;
        industry: string | null;
        creditLimit: Prisma.Decimal | null;
    }>;
    findByCodesIn(codes: string[]): Promise<Map<string, Awaited<ReturnType<typeof this.prisma.customer.findFirst>>>>;
    create(input: CustomerInput, userId: string, organizationId: string): Promise<{
        type: import("@prisma/client").$Enums.CustomerType;
        code: string;
        id: string;
        createdAt: Date;
        name: string;
        metadata: Prisma.JsonValue;
        updatedAt: Date;
        deletedAt: Date | null;
        organizationId: string;
        createdById: string;
        taxId: string | null;
        enabled: boolean;
        countryCode: string | null;
        currencyCode: string | null;
        industry: string | null;
        creditLimit: Prisma.Decimal | null;
    }>;
    update(id: string, input: Partial<CustomerInput>): Promise<{
        type: import("@prisma/client").$Enums.CustomerType;
        code: string;
        id: string;
        createdAt: Date;
        name: string;
        metadata: Prisma.JsonValue;
        updatedAt: Date;
        deletedAt: Date | null;
        organizationId: string;
        createdById: string;
        taxId: string | null;
        enabled: boolean;
        countryCode: string | null;
        currencyCode: string | null;
        industry: string | null;
        creditLimit: Prisma.Decimal | null;
    }>;
    softDelete(id: string): Promise<{
        id: string;
        deleted: boolean;
    }>;
    restore(id: string): Promise<{
        contacts: {
            role: string | null;
            id: string;
            createdAt: Date;
            name: string;
            email: string | null;
            phone: string | null;
            updatedAt: Date;
            isPrimary: boolean;
            customerId: string;
        }[];
        addresses: {
            id: string;
            createdAt: Date;
            updatedAt: Date;
            state: string | null;
            isDefault: boolean;
            city: string | null;
            countryCode: string | null;
            customerId: string;
            addressType: string;
            line1: string;
            line2: string | null;
            postalCode: string | null;
        }[];
    } & {
        type: import("@prisma/client").$Enums.CustomerType;
        code: string;
        id: string;
        createdAt: Date;
        name: string;
        metadata: Prisma.JsonValue;
        updatedAt: Date;
        deletedAt: Date | null;
        organizationId: string;
        createdById: string;
        taxId: string | null;
        enabled: boolean;
        countryCode: string | null;
        currencyCode: string | null;
        industry: string | null;
        creditLimit: Prisma.Decimal | null;
    }>;
}
