/**
 * Dereferences an OpenAPI or Arazzo description
 *
 * @param {String} descriptionPath - The OpenAPI or Arazzo description to be dereferenced.
 * @returns {Promise<Object>} - The dereferenced OpenAPI or Arazzo description.
 */
declare function loadDescription(descriptionPath?: string): Promise<import("@apidevtools/json-schema-ref-parser").JSONSchema>;
/**
 * Retrieves the operation details from an OpenAPI definition based on the provided operationId.
 *
 * @param {Object} [definition={}] - The OpenAPI definition object.
 * @param {string} [operationId=""] - The unique identifier for the operation.
 * @param {string} [responseCode=""] - The HTTP response code to filter the operation.
 * @param {string} [exampleKey=""] - The key for the example to be compiled.
 * @param {string} [server=""] - The server URL to use for examples.
 * @throws {Error} Will throw an error if the definition or operationId is not provided.
 * @returns {Object|null} Returns an object containing the operation details, schemas, and example if found; otherwise, returns null.
 */
declare function getOperation(definition?: any, operationId?: string, responseCode?: string, exampleKey?: string, server?: string): Promise<{
    path: string;
    method: string;
    definition: any;
    schemas: any;
    example: any;
} | null>;
export { getOperation, loadDescription };
//# sourceMappingURL=openapi.d.ts.map