import { default as NextLinkType } from 'next/link';
import { useRouter as useAppRouter } from 'next/navigation';
import { useRouter as usePagesRouter } from 'next/router';
import { Context } from 'react';
export interface GDSContextValue {
    isProvided: boolean;
    /**
     * Next.js's link or a compatible equivalent (must accept the same props, and be `ForwardRefExoticComponent`).
     */
    clientLink: typeof NextLinkType;
    /**
     * A hook that returns the Next router instance as well as info about the current path, or `null` when called outside an app.
     */
    useRouter: () => {
        appRouter: ReturnType<typeof useAppRouter> | null;
        pagesRouter: ReturnType<typeof usePagesRouter> | null;
        pathname: string;
        basePath: string;
        fullPathname: string;
        params: Record<string, string>;
        searchParams: URLSearchParams;
    } | null;
}
export interface GDSContext extends Context<GDSContextValue> {
    defaultValue: GDSContextValue;
}
declare global {
    var __gds_ctx: any;
}
export declare const GDSContext: GDSContext;
//# sourceMappingURL=GDSContext.d.ts.map