import type { OperationTypeNode } from 'graphql';
import { GraphQLDirective, GraphQLScalarType } from 'graphql';
import type { SubgraphTransform } from '../compose.js';
export interface EncapsulateTransformOpts {
    /**
     * Optional, name to use for grouping under the root types. If not specified, the API name is used.
     */
    name?: string;
    applyTo?: Record<OperationTypeNode, boolean>;
}
export declare function createEncapsulateTransform(opts?: EncapsulateTransformOpts): SubgraphTransform;
export declare const resolveToSourceArgsScalar: GraphQLScalarType<unknown, unknown>;
export declare const resolveToDirective: GraphQLDirective;
