import type { ODataVersion } from '@sap-cloud-sdk/util'; import type { VdmNavigationProperty, VdmProperty, VdmServiceMetadata } from './vdm-types'; /** * Checks if the `sap:deletable` property is present on the given input. * @param entity - Object to be checked. * @returns `true` if the property `sap:deletable` has the value 'true' or is not present in the object. * @internal */ export declare function isDeletable(entity: any): boolean; /** * Checks if the `sap:updatable` property is present on the given input. * @param entity - Object to be checked. * @returns `true` if the property `sap:updatable` has the value 'true' or is not present in the object. * @internal */ export declare function isUpdatable(entity: any): boolean; /** * Checks if the `sap:creatable` property is present on the given input. * @param entity - Object to be checked. * @returns `true` if the property `sap:creatable` has the value 'true' or is not present in the object. * @internal */ export declare function isCreatable(entity: any): boolean; /** * Checks if the `sap:sortable` property is present on the given input. * @param property - Object to be checked. * @returns `true` if the property `sap:sortable` has the value 'true' or is not present in the object. * @internal */ export declare function isSortable(property: any): boolean; /** * Checks if the `sap:filterable` property is present on the given input. * @param property - Object to be checked. * @returns `true` if the property `sap:filterable` has the value 'true' or is not present in the object. * @internal */ export declare function isFilterable(property: any): boolean; /** * Checks if the `Nullable` property is present on the given input. * @param property - Object to be checked. * @returns `true` if the property `Nullable` has the value 'true' or is not present in the object. * @internal */ export declare function isNullableProperty(property: any): boolean; /** * Checks if the 'Nullable' property is present on the given input. * @param parameter - Object to be checked. * @returns `false` if the property `Nullable` has the value 'false' or is not present in the object. * @internal */ export declare function isNullableParameter(parameter: any): boolean; /** * @internal */ export type EdmTypeMapping = { [key in EdmTypeShared]: string | undefined; }; /** * @internal */ export declare function getFallbackEdmTypeIfNeeded(edmType: string): EdmTypeShared; /** * @internal */ export declare function edmToTsType(edmType: string): string; /** * @internal */ export declare function edmToFieldType(edmType: string): string; /** * @internal */ export declare function edmToComplexPropertyType(edmType: string): string; /** * @internal */ export declare function forceArray(obj: any): any[]; /** * @internal */ export declare function ensureString(obj: any): string; /** * @internal */ export declare function endWithDot(text: string): string; /** * @internal */ export declare function linkClass(navProperty: VdmNavigationProperty, oDataVersion: ODataVersion): string; /** * @internal */ export declare function getGenericParameters(entityClassName: string, prop: VdmProperty, isSelectable: boolean): string; /** * Applies a prefix to a string if present. * @param string - The string to be prefixed. * @param prefix - The optional prefix. * @returns Prefixed string. * @internal */ export declare function prefixString(string: string, prefix?: string): string; /** * @internal */ export declare function cloudSdkVdmHack(name: string): string; /** * @internal */ export declare function hasEntities(service: VdmServiceMetadata): boolean; /** * @internal * This is copied from the `@sap-cloud-sdk/odata-common` */ export type EdmTypeShared = 'Edm.String' | 'Edm.Boolean' | 'Edm.Decimal' | 'Edm.Double' | 'Edm.Single' | 'Edm.Float' | 'Edm.Int16' | 'Edm.Int32' | 'Edm.Int64' | 'Edm.SByte' | 'Edm.Binary' | 'Edm.Guid' | 'Edm.Byte' | 'Edm.Any' | 'Edm.DateTimeOffset' | 'Edm.DateTime' | 'Edm.Time' | 'Edm.Date' | 'Edm.Duration' | 'Edm.TimeOfDay' | 'Edm.Enum';