import type { RbacScopeItems } from '@redocly/config'; import type { BundledApiDefinition } from './loader.js'; /** What the download route needs to apply the API page's access rule to one definition. */ export type ApiDefinitionAccess = { /** Content-relative source file (`customOutputRelativeFile || relativePath`). */ sourcePath: string; /** The API's base page slug, e.g. `/apis/internal`. */ slug: string; /** `apis..rbac`; replaces the content rule when present. */ rbac?: RbacScopeItems; }; /** * The key of the definition that a download of `stem` on the GraphQL route (`/_spec-gql`) or * on a bundle route (`/_bundle`, `/_spec`) describes; `stem` is the request path after the * route prefix without its extension (`apis/museum` for `apis/museum.yaml`), so one bundle * answers under `.json`, `.yaml` and `.yml`. A schema and a bundle of one stem have distinct keys. */ export declare function requestDefinitionAccessKey(isGraphql: boolean, stem: string): string; /** The key of `definition` in the access map; undefined for one under the public static folder. */ export declare function definitionAccessKey(definition: Pick): string | undefined; export declare function describeDefinitionAccess(definition: BundledApiDefinition, basePath: string): ApiDefinitionAccess; //# sourceMappingURL=definition-access.d.ts.map