/** * @license * Copyright 2025 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. */ /** Type constant for Firebase Crashlytics. */ export declare const CRASHLYTICS_TYPE = "crashlytics"; /** The name of the tracer for Firebase Crashlytics. */ export declare const CRASHLYTICS_TRACER_NAME = "firebase.crashlytics"; /** The default endpoint for the Cloud Client Telemetry API. */ export declare const DEFAULT_TELEMETRY_ENDPOINT = "https://clienttelemetry.googleapis.com"; /** Default region for telemetry data. */ export declare const DEFAULT_TELEMETRY_REGION = "global"; /** Label keys for resource attributes in telemetry providers. */ export declare const RESOURCE_ATTRIBUTE_KEYS: { GCP_PROJECT_ID: string; GCP_FIREBASE_APP_ID: string; CLOUD_REGION: string; }; /** Symbol for the internal flag indicating an error has already been logged. */ export declare const ALREADY_LOGGED_FLAG: unique symbol; /** Resource attribute key representing the web application domain in the tracing provider. */ export declare const GCP_FIREBASE_DOMAIN = "gcp.firebase.domain"; /** * The keys for Next.js request attributes that we write in telemetry log entries. */ export declare const NEXTJS_REQUEST_ATTRIBUTE_KEYS: { PATH: string; METHOD: string; ROUTER_KIND: string; ROUTE_TYPE: string; }; /** * Maximum safe payload size (in bytes) to use with keepalive: true. * Browsers limit total keepalive data to 64KB, which includes both the request body * and all HTTP request headers. We use 60,000 bytes as a safe limit to leave a buffer * of ~5KB for headers (such as large App Check tokens, API keys, and content-type). */ export declare const KEEPALIVE_MAX_PAYLOAD_SIZE = 60000;