import { MaybeUserContext, ProjectContext, UserContext } from '../domain/context.js'; import { Loaders } from '../domain/loaders.js'; import { AuthPolicyCheckFragment, AuthPolicyEnsureFragment } from '../domain/policies.js'; import { ProjectNoAccessError, ProjectNotEnoughPermissionsError, ProjectNotFoundError, ServerNoAccessError, ServerNoSessionError, ServerNotEnoughPermissionsError, WorkspaceNoAccessError, WorkspaceNotEnoughPermissionsError, WorkspacePlanNoFeatureAccessError, WorkspaceReadOnlyError, WorkspacesNotEnabledError, WorkspaceSsoSessionNoAccessError } from '../domain/authErrors.js'; import { StreamRoles } from '../../core/constants.js'; import { WorkspacePlanFeatures } from '../../workspaces/index.js'; /** * Ensure user has a minimum explicit or implicit project role */ export declare const ensureMinimumProjectRoleFragment: AuthPolicyEnsureFragment>; /** * Ensure user has access to the project's workspace (has role & SSO session, if any), if it has one */ export declare const ensureProjectWorkspaceAccessFragment: AuthPolicyEnsureFragment>; /** * Check if project is publicly readable or not */ export declare const checkIfPubliclyReadableProjectFragment: AuthPolicyCheckFragment>; /** * Ensure user has implicit/explicit project membership and read access */ export declare const ensureImplicitProjectMemberWithReadAccessFragment: AuthPolicyEnsureFragment>; /** * Ensure user has implicit/explicit project membership and write access */ export declare const ensureImplicitProjectMemberWithWriteAccessFragment: AuthPolicyEnsureFragment>; /** * Ensure project is workspaced and has access to a specific plan feature */ export declare const ensureCanUseProjectWorkspacePlanFeatureFragment: AuthPolicyEnsureFragment>; //# sourceMappingURL=projects.d.ts.map