/** * Reading the organization and project an API path targets. It imports only * the base path, so the generated client can use it without pulling in * `@sentry/api/client`. */ /** The organization, and project when present, an API path targets. */ export type ApiPathScope = { organization: string; project?: string; }; /** * The organization, and project when present, a Sentry API request targets, * read from its path: `/organizations/{org}/`, `/projects/{org}/{project}/`, * `/teams/{org}/`, and `/organizations/{org}/projects/{project}/`. * * Accepts a full URL, whose path must contain {@link API_BASE_PATH} (a * self-hosted install may serve it under a prefix), or a path relative to it * with or without that prefix. Undefined for unscoped paths, list endpoints such * as `/organizations/`, and schema placeholders. * * Hosts with several credentials or regions use it to pick the one that * serves the organization: `createApiTransport` passes it to * `CredentialProvider.current`, and the generated client to * `Config.resolveBaseUrl`. */ export declare function parseApiPathScope(urlOrPath: string): ApiPathScope | undefined;