import { BaseIdentifierStrategy } from '@solid/community-server'; import type { ResourceIdentifier } from '@solid/community-server'; export interface ClusterIdentifierStrategyOptions { baseUrl: string; /** * 允许的额外 host 列表(用于 Docker/容器环境) * 可以是数组或逗号分隔的字符串,例如: ['cloud', 'idp'] 或 "cloud,idp,localhost" * 支持一层通配符后缀,例如 "*.undefineds.co" 匹配 "node-0000.undefineds.co", * 但不匹配 apex "undefineds.co" 或 "undefineds.co.evil.test"。 */ allowedHosts?: string[] | string; } /** * Identifier strategy that accepts both the primary cluster host and any * node subdomain under the same base domain. */ export declare class ClusterIdentifierStrategy extends BaseIdentifierStrategy { private readonly logger; private readonly baseUrl; private readonly baseHost; private readonly allowedHosts; constructor(options: ClusterIdentifierStrategyOptions); supportsIdentifier(identifier: ResourceIdentifier): boolean; private isAllowedHost; isRootContainer(identifier: ResourceIdentifier): boolean; }