import type { ConnectorMetadata } from "../connectors/registry.js"; export interface ScopeMapping { scope: string; data: unknown; } /** * Resolve connector output keys to personal server scopes. * * Strategy (matches DataConnect production): * 1. If any output keys contain ".", use them directly as scopes * 2. Otherwise, use connector metadata to map: metadata scope "github.profile" * → look for key "profile" in result * 3. If no metadata, fall back to "{source}.{key}" for every non-metadata key * (exclude: exportSummary, timestamp, version, platform) * * A PDPP result (one carrying a `completedStreams` array) only ever resolves * through strategy 1; with no dotted keys it resolves to nothing. * * @param source - The connector source name (e.g. "github") * @param result - The connector output as key-value pairs * @param metadata - Optional connector metadata with scope definitions * @returns An array of scope mappings */ export declare function resolveScopes(source: string, result: Record, metadata: ConnectorMetadata | null): ScopeMapping[]; //# sourceMappingURL=scope-resolver.d.ts.map