import type { OpenAPIV2, OpenAPIV3 } from 'openapi-types';
import type { Logger, MeshFetch } from '@graphql-mesh/types';
import type { JSONSchemaOperationConfig, OperationHeadersConfiguration } from '@omnigraph/json-schema';
import type { OpenAPILoaderSelectQueryOrMutationFieldConfig } from './types.js';
interface GetJSONSchemaOptionsFromOpenAPIOptionsParams {
    source: OpenAPIV3.Document | OpenAPIV2.Document | string;
    fallbackFormat?: 'json' | 'yaml' | 'js' | 'ts';
    cwd?: string;
    fetch?: MeshFetch;
    endpoint?: string;
    schemaHeaders?: Record<string, string>;
    operationHeaders?: OperationHeadersConfiguration;
    queryParams?: Record<string, any>;
    selectQueryOrMutationField?: OpenAPILoaderSelectQueryOrMutationFieldConfig[];
    logger?: Logger;
    jsonApi?: boolean;
}
export declare function getJSONSchemaOptionsFromOpenAPIOptions(name: string, { source, fallbackFormat, cwd, fetch: fetchFn, endpoint, schemaHeaders, operationHeaders, queryParams, selectQueryOrMutationField, logger, jsonApi, }: GetJSONSchemaOptionsFromOpenAPIOptionsParams): Promise<{
    operations: JSONSchemaOperationConfig[];
    endpoint: string;
    cwd: string;
    fetch: MeshFetch;
    schemaHeaders: Record<string, string>;
    operationHeaders: OperationHeadersConfiguration;
}>;
export {};
