import { IdMap, IdMapperClient } from '../base'; import { MigrationClient } from '../../migration-client'; import { LoggerService } from '../../logger'; import { RolesIdMapperClient } from '../roles'; export declare class PoliciesIdMapperClient extends IdMapperClient { protected readonly rolesIdMapperClient: RolesIdMapperClient; protected adminPolicyFetched: boolean; protected adminPolicyId: string | undefined; protected readonly adminPolicyPlaceholder = "_sync_default_admin_policy"; protected publicPolicyFetched: boolean; protected publicPolicyId: string | undefined; protected readonly publicPolicyPlaceholder = "_sync_default_public_policy"; constructor(migrationClient: MigrationClient, loggerService: LoggerService, rolesIdMapperClient: RolesIdMapperClient); /** * Force admin and public policies placeholders for the admin and public policies. */ create(localId: string | number, syncId?: string): Promise; /** * Create the sync id of the admin and public policies on the fly, as it already has been synced. */ getBySyncId(syncId: string): Promise; /** * Returns the default admin policy, attached to the admin role. */ protected getAdminPolicyId(): Promise; /** * Returns the default public policy, where role = null */ protected getPublicPolicyId(): Promise; }