import { default as React, ReactElement, ReactNode } from 'react'; import { Gateway } from '../../graphql'; export interface GatewayRouteProps { /** Target gateway for this route */ gateway: Gateway; /** Child components (microfrontend) */ children: ReactNode; } /** * GatewayRoute - Wraps children with appropriate Apollo client. * Use this to wrap microfrontend routes that need a specific gateway. */ export declare function GatewayRoute({ gateway, children }: GatewayRouteProps): ReactElement; /** * Get gateway for a microfrontend from a gateway map. * * @param key - Microfrontend key * @param gatewayMap - Map of microfrontend keys to gateway types * @param defaultGateway - Default gateway if key is not found */ export declare function getMicrofrontendGateway(key: T, gatewayMap: Record, defaultGateway?: Gateway): Gateway; /** * Higher-order component to wrap a component with gateway-specific Apollo client. * * @example * ```tsx * const BillingWithGateway = withGateway('global')(BillingRoot); * ``` */ export declare function withGateway(gateway: Gateway):

(Component: React.ComponentType

) => (props: P) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=GatewayRouter.d.ts.map