@n8n/n8n-nodes-langchain
Version:
13 lines (12 loc) • 669 B
TypeScript
import { type IExecuteFunctions, type ILoadOptionsFunctions, type ISupplyDataFunctions, type NodeEgressFilter } from 'n8n-workflow';
import type { RefreshingTokenSource } from '../oauth2-token-provider';
import type { DatabricksOAuth2Credential } from './token-provider';
export type DatabricksFetchContext = IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions;
export declare function createDatabricksAuthFetch(ctx: DatabricksFetchContext, credential: DatabricksOAuth2Credential, options: {
endpointUrl: string;
egressFilter: NodeEgressFilter;
baseFetch: typeof fetch;
}): {
fetch: typeof fetch;
tokenSource: RefreshingTokenSource;
};