import { ODataConfig } from "../../../../../fd-toolbox/odata/odataconfig";
import { WithId } from "../../../../../fd-toolbox-core/types/resource-with-id";
/**
 * Crud handler for Get one operation
 * @template T resource type
 * @param id required id parameter of the resource to get instance of
 * @param oDataConfig optional {@link ODataConfig} that you can read to modify your return
 * @returns an instance of T or `null`
 */
export type GetOneHandler<T extends WithId = WithId> = (id: string, oDataConfig?: ODataConfig, throwIfNotFound?: boolean) => Promise<T | undefined>;
