import type { DaoCoreConfig } from "../config/types.daocore.js";
export type SpawnedRunMetadata = {
    spawnedBy?: string | null;
    groupId?: string | null;
    groupChannel?: string | null;
    groupSpace?: string | null;
    workspaceDir?: string | null;
};
export type SpawnedToolContext = {
    agentGroupId?: string | null;
    agentGroupChannel?: string | null;
    agentGroupSpace?: string | null;
    agentMemberRoleIds?: string[];
    workspaceDir?: string;
    inheritedToolAllowlist?: string[];
    inheritedToolDenylist?: string[];
};
type NormalizedSpawnedRunMetadata = {
    spawnedBy?: string;
    groupId?: string;
    groupChannel?: string;
    groupSpace?: string;
    workspaceDir?: string;
};
export declare function normalizeSpawnedRunMetadata(value?: SpawnedRunMetadata | null): NormalizedSpawnedRunMetadata;
export declare function mapToolContextToSpawnedRunMetadata(value?: SpawnedToolContext | null): Pick<NormalizedSpawnedRunMetadata, "groupId" | "groupChannel" | "groupSpace" | "workspaceDir">;
export declare function resolveSpawnedWorkspaceInheritance(params: {
    config: DaoCoreConfig;
    targetAgentId?: string;
    requesterSessionKey?: string;
    explicitWorkspaceDir?: string | null;
}): string | undefined;
export declare function resolveIngressWorkspaceOverrideForSpawnedRun(metadata?: Pick<SpawnedRunMetadata, "spawnedBy" | "workspaceDir"> | null): string | undefined;
export {};
