import type { Models } from '../../../types/model';
export declare function getQueryToFindUpstreamIds(models: Models, table: string, id: string): {
    where: {
        id: string;
    };
    include?: undefined;
} | {
    include: {
        model: typeof import("../../..").Prescription;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").Prescription;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").ReferenceData;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").PharmacyOrder;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").PharmacyOrder;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").User;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").PharmacyOrder;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Encounter;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").PharmacyOrder;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Encounter;
            as: string;
            required: boolean;
            include: {
                model: typeof import("../../..").Patient;
                as: string;
                required: boolean;
                where: {
                    id: string;
                };
            }[];
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").PharmacyOrder;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Encounter;
            as: string;
            required: boolean;
            include: {
                model: typeof import("../../..").Location;
                as: string;
                required: boolean;
                include: {
                    model: typeof import("../../..").Facility;
                    as: string;
                    required: boolean;
                    where: {
                        id: string;
                    };
                }[];
            }[];
        }[];
    }[];
    where?: undefined;
} | null;
//# sourceMappingURL=getQueryToFindUpstreamIds.d.ts.map