import type { Models } from '../../../types/model';
export declare function fromImagingRequests(models: Models, table: string, id: string): {
    include: {
        model: typeof import("../../..").Note;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
} | {
    include: {
        model: typeof import("../../..").Encounter;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
} | {
    include: {
        model: typeof import("../../..").Encounter;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Patient;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
} | {
    where: {
        id: string;
    };
    include?: undefined;
} | {
    include: {
        model: typeof import("../../..").ImagingRequestArea;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    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;
} | {
    include: {
        model: typeof import("../../..").Encounter;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Location;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").LocationGroup;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").ImagingRequestArea;
        required: boolean;
        include: {
            model: typeof import("../../..").ReferenceData;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").ImagingRequestArea;
        required: boolean;
        include: {
            model: typeof import("../../..").ReferenceData;
            as: string;
            required: boolean;
            include: {
                model: typeof import("../../..").ImagingAreaExternalCode;
                as: string;
                required: boolean;
                where: {
                    id: string;
                };
            }[];
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").ImagingTypeExternalCode;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").User;
        as: string;
        required: boolean;
    }[];
    where: {
        [x: symbol]: ({
            '$requestedBy.id$': string;
            '$completedBy.id$'?: undefined;
        } | {
            '$completedBy.id$': string;
            '$requestedBy.id$'?: undefined;
        })[];
        id?: undefined;
    };
} | null;
export declare function fromLabRequests(models: Models, table: string, id: string): {
    include: {
        model: typeof import("../../..").Note;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
} | {
    include: {
        model: typeof import("../../..").Encounter;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
} | {
    include: {
        model: typeof import("../../..").Encounter;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").Patient;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
} | {
    where: {
        id: string;
    };
    include?: undefined;
} | {
    include: {
        model: typeof import("../../..").LabTest;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").LabTest;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").LabTestType;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").LabTestPanelRequest;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").LabTestPanelRequest;
        as: string;
        required: boolean;
        include: {
            model: typeof import("../../..").LabTestPanel;
            as: string;
            required: boolean;
            where: {
                id: string;
            };
        }[];
    }[];
    where?: undefined;
} | {
    include: {
        model: typeof import("../../..").User;
        as: string;
        required: boolean;
        where: {
            id: string;
        };
    }[];
    where?: undefined;
} | null;
//# sourceMappingURL=getQueryToFindUpstreamIds.d.ts.map