import { ApiDefinitions, AmfShapes } from '@api-client/core/build/browser.js';
/**
 * Stops an event and cancels it.
 * @param e The event to stop
 */
export declare function cancelEvent(e: Event): void;
/**
 * @param types Shape's types
 */
export declare function isScalarType(types?: string[]): boolean;
/**
 * @param value The value from the graph model to use to read the value from
 */
export declare function schemaToType(value: string): string;
/**
 * Reads the label for a data type for a shape union.
 * @param schema
 * @param isArray Used internally
 * @returns Computed label for a shape.
 */
export declare function readPropertyTypeLabel(schema: AmfShapes.IShapeUnion, isArray?: boolean): string | undefined;
/**
 * @param shape
 * @returns true when the passed union type consists of scalar values only. Nil counts as scalar.
 */
export declare function isScalarUnion(shape: AmfShapes.IApiUnionShape): boolean;
export declare function sanitizeHTML(HTML: string): string;
export declare function joinTraitNames(traits: ApiDefinitions.IApiParametrizedDeclaration[]): string;
export declare function generateHeaders(params: Record<string, unknown>): string;
/**
 * Ensures the headers have content type header.
 * @param headers The generated headers string
 * @param mime The expected by the selected payload media type. If not set then it does nothing.
 */
export declare function ensureContentType(headers: string, mime?: string): string;
/**
 * @param parameter
 * @param schema
 * @returns The name to use in the input.
 */
export declare function readLabelValue(parameter: ApiDefinitions.IApiParameter, schema: AmfShapes.IShapeUnion): string;
//# sourceMappingURL=Utils.d.ts.map