import Api from '../api.js';
/**
 * Resolve an app's ObjectId from a public slug or private slug; pass through
 * a value that already looks like an ObjectId.
 *
 * Priority mirrors schema-api-server installer.js:3596 `getAppBySlugId`:
 * private match (`_<slug>`) wins over public match. For typical apps the
 * order is invisible (a single record matches both branches), but it
 * matters when two apps share a slug across publish state.
 */
export declare function resolveAppId(api: Api, appIdOrSlug: string): Promise<string>;
/**
 * Build a map of installed-app ObjectId -> friendly slug, using the shared
 * server-canonical slug priority (see `slug.ts`).
 */
export declare function buildAppSlugMap(api: Api): Promise<Record<string, string>>;
