import type { AIBackendProfile } from './backendProfileSchema.js';
export type BackendProfileRefCandidate = Readonly<{
    id: string;
    name: string;
    isBuiltIn: boolean;
}>;
export type ResolveBackendProfileResult = Readonly<{
    ok: true;
    profile: AIBackendProfile;
    resolvedBy: 'id' | 'name';
}> | Readonly<{
    ok: false;
    reason: 'not_found';
    query: string;
}> | Readonly<{
    ok: false;
    reason: 'ambiguous_name';
    query: string;
    candidates: ReadonlyArray<BackendProfileRefCandidate>;
}>;
export declare function resolveBackendProfile(params: Readonly<{
    query: string;
    customProfiles: ReadonlyArray<AIBackendProfile>;
}>): ResolveBackendProfileResult;
//# sourceMappingURL=resolveBackendProfile.d.ts.map