import type { GatewayContext, GatewayPlugin } from '@graphql-hive/gateway-runtime';
import type { MeshFetchRequestInit } from '@graphql-mesh/types';
export interface OperationHeadersFactoryPayload {
    context: GatewayContext;
    url: string;
    options: MeshFetchRequestInit;
}
export type OperationHeadersFactory = (payload: OperationHeadersFactoryPayload) => Promise<Record<string, string>> | Record<string, string>;
export declare function useOperationHeaders(factoryFn: OperationHeadersFactory): GatewayPlugin;
