import type { Property } from "@autorest/codemodel"; import { Parameter } from "@autorest/codemodel"; import type { SdkCookieParameter, SdkHeaderParameter, SdkHttpOperation, SdkLroServiceMetadata, SdkModelPropertyType, SdkPathParameter, SdkQueryParameter, SdkServiceResponseHeader } from "@azure-tools/typespec-client-generator-core"; import type { Program, Type, Union } from "@typespec/compiler"; import type { HttpOperation } from "@typespec/http"; import type { Client as CodeModelClient } from "./common/client.js"; import { ServiceVersion } from "./common/client.js"; import type { CodeModel } from "./common/code-model.js"; import type { Operation as CodeModelOperation } from "./common/operation.js"; export declare const SPECIAL_HEADER_NAMES: Set; export declare const ORIGIN_API_VERSION = "modelerfour:synthesized/api-version"; export declare function isContentTypeHeader(header: SdkPathParameter | SdkQueryParameter | SdkHeaderParameter | SdkCookieParameter | SdkServiceResponseHeader): boolean; export declare function isKnownContentType(contentTypes: string[]): boolean; export declare function operationIsJsonMergePatch(op: SdkHttpOperation): boolean; export declare function operationIsMultipart(op: SdkHttpOperation): boolean; export declare function operationIsMultipleContentTypes(op: SdkHttpOperation): boolean; export declare function operationRefersUnion(program: Program, op: HttpOperation, cache: Map): Union | null; export declare function getServiceVersion(client: CodeModelClient | CodeModel): ServiceVersion; export declare function isLroNewPollingStrategy(operation: SdkHttpOperation, lroMetadata: SdkLroServiceMetadata): boolean; export declare function cloneOperationParameter(parameter: Parameter): Parameter; /** * Constructs a list of property path (json path) from the response schema based on the provided property segments. * * @param op the code model operation * @param propertySegments the segments of the property path (json path) to find in the response schema * @returns the list of property path (json path) */ export declare function findResponsePropertySegments(op: CodeModelOperation, propertySegments: (SdkServiceResponseHeader | SdkModelPropertyType)[] | undefined): Property[] | undefined; //# sourceMappingURL=operation-utils.d.ts.map