import { C as Context, E as EnumTypeValue } from '../shared/openapi-decorators.y9-mt_C9.mjs'; import 'openapi-types'; import 'type-fest'; /** * Returns schema path from a class constructor or a schema name. */ declare function getSchemaPath(model: string | Function): string; /** * Asserts that `reflect-metadata` exists. */ declare function assertReflectMetadata(): void; type MetadataKey = 'design:type' | 'design:returntype' | 'design:paramtypes'; type FindTypeOptions = { context: Context; metadataKey: MetadataKey; prototype: Object; propertyKey: string; }; /** * Returns the type inferred from class member. */ declare function findType({ metadataKey, prototype, propertyKey }: FindTypeOptions): Function; /** * Asserts that a value is a thunk value. * * @example isThunk('hello') === false * @example isThunk(() => 'hello') === true */ declare function isThunk(value: any): boolean; /** * Returns primitive type from values of an enum. */ declare function getEnumType(values: (string | number)[]): 'string' | 'number'; /** * Returns values of an enum. */ declare function getEnumValues(enumType: EnumTypeValue): (string | number)[]; export { assertReflectMetadata, findType, getEnumType, getEnumValues, getSchemaPath, isThunk }; export type { FindTypeOptions, MetadataKey };