import type { ServiceLeaf, ServiceTree } from '../../typings/admin/comm/service';
import { BaseService } from './base';
import { type EpsSide } from './eps';
type ServiceRoot = ServiceTree & {
    request: BaseService['request'];
};
/** 按侧别获取 service Proxy（admin / app 各一份单例） */
export declare function getService(side?: EpsSide): ServiceRoot;
/** 默认 admin 侧 service 树 */
export declare const service: ServiceRoot;
export type CreateEpsOptions = {
    force?: boolean;
    side?: EpsSide;
    /**
     * 挂载后必须存在的根模块键（admin 为 base）。
     * false = 只校验 EPS 非空。
     */
    requireRoot?: string | false;
};
/**
 * 从 EPS 重建 service 树。
 */
export declare function createEps(opts?: CreateEpsOptions): Promise<ServiceRoot>;
/** 开发态：监听 Vite `eps-update` 热更（各端自行调用） */
export declare function bindEpsHotReload(side?: EpsSide): void;
export declare function setServicePerms(perms: string[], isSuper?: boolean, side?: EpsSide): void;
export declare function resolveService(path: string, side?: EpsSide): ServiceLeaf | undefined;
export declare function serviceOf(prefix: string, side?: EpsSide): ServiceLeaf;
export type { ServiceLeaf, ServiceTree };
