import * as Sampler from 'openapi-sampler';
import type { JSONSchema7 } from 'json-schema';
import type { OperationModel, ExtendedOpenAPISecurityScheme } from '../../models/index.js';
import type * as HAR from './har.js';
import type { Languages } from './types.js';
import { type TFunction } from '@redocly/theme/core/openapi';
export type CustomHAR = HAR.Request & {
    securityOAuth2ExtraCalls?: OAuth2ExtraCall[];
    basicAuth?: {
        username: string;
        password: string;
    };
    pathParameters?: {
        [key in string]: string;
    };
    serverVariables?: Record<string, string>;
    allResponseCodes?: string[];
};
export declare function safeSample(schema: JSONSchema7, options: Sampler.Options, document: object): any;
export declare function getCodeSample({ lang, operation, exampleName, pathParams, properties, options, environment, translate, }: {
    lang: Languages;
    operation: OperationModel;
    exampleName?: string;
    pathParams?: GenericObject;
    properties?: GenericObject;
    options?: GenericObject;
    environment: Record<string, string>;
    translate: TFunction;
}): string;
type OAuth2ExtraCall = HAR.Request & {
    flowType: keyof ExtendedOpenAPISecurityScheme['flows'];
    securityOAuth2ExtraCalls: OAuth2ExtraCall[];
    tokenUrl?: string;
    clientId?: string;
};
export declare function getDataRequest(exampleValue: any, properties: any): boolean | any;
export declare function objectToHarParams(obj: GenericObject, parentKey?: string): HAR.Param[];
export declare function isDefined<T>(arg?: T): arg is T;
export declare function capitalizeFirst(str: string): string;
export {};
