import type { ExtendedOpenAPIOperation, Unstable_ExternalCodeSample, OpenAPIParser, Options } from '../services/index.js';
import type { OpenAPIServer, OpenAPIXCodeSample } from '../types/index.js';
import type { MediaContentModel, OperationModel, GroupModel } from './types.js';
import type { ConfigureRequestValues, ConfigureServerRequestValues } from '@redocly/theme/ext/configure';
import { type UserClaims } from '@redocly/theme/core/openapi';
export interface Sample {
    lang: string;
    label?: string;
}
export interface XPayloadSample extends Sample {
    lang: 'payload';
    requestBodyContent: MediaContentModel;
    source: string;
}
export interface Callback {
    isCallback: boolean;
    id?: string;
}
export declare function isPayloadSample(sample: XPayloadSample | OpenAPIXCodeSample | Unstable_ExternalCodeSample): sample is XPayloadSample;
export declare function getOperation(parser: OpenAPIParser, operationDefinition: ExtendedOpenAPIOperation, parent: GroupModel | undefined, options: Options, href: string, callback?: Callback, userClaims?: UserClaims, dynamicRequestValues?: ConfigureRequestValues | ConfigureServerRequestValues | null): OperationModel;
export declare function mergeInMockServer(servers: OpenAPIServer[], mockServerOptions: Options['mockServer']): OpenAPIServer[];
