/** * @license * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { FirebaseApp } from '@firebase/app'; import { CrashlyticsOptions } from '../public-types'; export * from '../public-types'; /** * Constructs a parameterized route template for Next.js App Router * by replacing dynamic parameter values in the pathname with parameter placeholders. * * @example * // pathname = "/users/123/details", params = { id: "123" } * // returns "/users/:id/details" * * @internal */ export declare function getParameterizedRoute(pathname: string | null, params: Record | null): string; /** * A client-side routing component for Next.js App Router that automatically * captures navigation events and updates route attributes. * * This component should be mounted inside a root Client Component layout. * * @example * ```tsx * // app/layout.tsx * import { CrashlyticsRoutes } from 'firebase/crashlytics/next-navigation'; * * export default function RootLayout({ children }) { * return ( * * * * {children} * * * ); * } * ``` * * @beta */ export declare function CrashlyticsRoutes({ firebaseApp, crashlyticsOptions }: { firebaseApp: FirebaseApp; crashlyticsOptions?: CrashlyticsOptions; }): null;