import { type ICredentialDataDecryptedObject, type IExecuteFunctions, type ILoadOptionsFunctions, type ISupplyDataFunctions, type NodeEgressFilter } from 'n8n-workflow';
import type { EndpointCredential } from './types';
export type CustomModelEndpointFetchContext = IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions;
export declare function createCustomModelEndpointAuthFetch(ctx: CustomModelEndpointFetchContext, credential: ICredentialDataDecryptedObject, options: {
    endpoint: EndpointCredential;
    egressFilter: NodeEgressFilter;
    baseFetch: typeof fetch;
    requestHeaders?: Record<string, string>;
}): typeof fetch;
