import type { AgentReferenceResolver } from '../../../book-2.0/agent-source/AgentReferenceResolver';
import type { string_book } from '../../../book-2.0/agent-source/string_book';
/**
 * Resolved source together with the profile resolver used when compiling TEAM commitments.
 *
 * @private internal type of CLI agent resolution
 */
export type ResolvedLocalAgentSource = {
    /** Canonical identity used to bound recursive TEAM consultations. */
    readonly agentUrl: string;
    readonly agentSource: string_book;
    readonly agentReferenceResolver: AgentReferenceResolver;
    /** Resolves another Book in this collection, retaining its own inheritance and reference locations. */
    readonly resolveAgentSource: (url: string, signal?: AbortSignal) => Promise<ResolvedLocalAgentSource>;
    /** Newly created books which the coder may include in its initialization commit. */
    readonly createdAgentBookPaths: ReadonlyArray<string>;
};
/**
 * Applies the shared Agent Server inheritance rules to a repository's local and remote books.
 *
 * @private internal utility of CLI agent resolution
 */
export declare function resolveLocalAgentSource(agentBookPath: string, currentWorkingDirectory: string, options?: {
    readonly isInitializationAllowed?: boolean;
    readonly signal?: AbortSignal;
}): Promise<ResolvedLocalAgentSource>;
