import type { BooleanLiteral, IntrinsicScalarName, Model, ModelProperty, NumericLiteral, Program, Scalar, StringLiteral, Type, Value } from "@typespec/compiler"; import type { HttpOperation, HttpProperty } from "@typespec/http"; /** * Checks if two objects are deeply equal. * * Does not support cycles. Intended to be used only on plain data that can * be directly represented in JSON. */ export declare function deepEquals(left: unknown, right: unknown): boolean; export type EqualityComparer = (x: T, y: T) => boolean; /** * Check if two arrays have the same elements. * * @param equals Optional callback for element equality comparison. * Default is to compare by identity using `===`. */ export declare function arrayEquals(left: T[], right: T[], equals?: EqualityComparer): boolean; /** * Check if two maps have the same entries. * * @param equals Optional callback for value equality comparison. * Default is to compare by identity using `===`. */ export declare function mapEquals(left: Map, right: Map, equals?: EqualityComparer): boolean; /** * Check if argument is not undefined. */ export declare function isDefined(arg: T | undefined): arg is T; export interface SharedHttpOperation { kind: "shared"; operations: HttpOperation[]; } export declare function isSharedHttpOperation(operation: HttpOperation | SharedHttpOperation): operation is SharedHttpOperation; export declare function isStdType(program: Program, type: Type): type is Scalar & { name: IntrinsicScalarName; }; export declare function isLiteralType(type: Type): type is StringLiteral | NumericLiteral | BooleanLiteral; export declare function literalType(type: StringLiteral | NumericLiteral | BooleanLiteral): "boolean" | "number" | "string"; export declare function includeDerivedModel(model: Model): boolean; export declare function isScalarExtendsBytes(type: Type): boolean; export declare function getDefaultValue(program: Program, defaultType: Value, modelProperty: ModelProperty): any; export declare function isBytesKeptRaw(program: Program, type: Type): boolean; export declare function ensureValidComponentFixedFieldKey(program: Program, type: Type, oldKey: string): string; export type HttpParameterProperties = Extract; export declare function isHttpParameterProperty(httpProperty: HttpProperty): httpProperty is HttpParameterProperties; //# sourceMappingURL=util.d.ts.map