import type { AuthContext, SolidAuthContext } from '../../auth/AuthContext'; export interface GatewayKeyPrincipal { webId: string; accountId?: string; scopes: string[]; keyId: string; } export declare function isGatewayApiKeyPrincipal(auth: AuthContext | undefined): auth is SolidAuthContext & { viaGatewayApiKey: true; gatewayKeyId: string; scopes: string[]; }; export declare function isInternalGatewayInvocationPrincipal(auth: AuthContext | undefined): auth is SolidAuthContext & { viaGatewayApiKey: true; internalInvocation: true; gatewayKeyId: string; scopes: string[]; }; export declare function canManageGatewayKeys(auth: AuthContext | undefined): boolean; export declare function ownerWebIdForGatewayKeyManagement(auth: AuthContext, requestedOwner: unknown): string | undefined;