import { APIResource } from "../../core/resource.js"; import * as Shared from "../shared.js"; import { RolesV4PagePaginationArray } from "../shared.js"; import { APIPromise } from "../../core/api-promise.js"; import { PagePromise, type V4PagePaginationArrayParams } from "../../core/pagination.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * @deprecated Please use the [Account Permission Groups](https://developers.cloudflare.com/api/resources/iam/subresources/permission_groups/) API instead */ export declare class BaseRoles extends APIResource { static readonly _key: readonly ['accounts', 'roles']; /** * Get all available roles for an account. * * @deprecated Use /accounts/{account_id}/iam/permission_groups instead. */ list(params: RoleListParams, options?: RequestOptions): PagePromise; /** * Get information about a specific role for an account. * * @deprecated Use /accounts/{account_id}/iam/permission_groups/{permission_group_id} instead. */ get(roleID: string, params: RoleGetParams, options?: RequestOptions): APIPromise; } /** * @deprecated Please use the [Account Permission Groups](https://developers.cloudflare.com/api/resources/iam/subresources/permission_groups/) API instead */ export declare class Roles extends BaseRoles { } export interface RoleListParams extends V4PagePaginationArrayParams { /** * Path param: Account identifier tag. */ account_id: string; } export interface RoleGetParams { /** * Account identifier tag. */ account_id: string; } export declare namespace Roles { export { type RoleListParams as RoleListParams, type RoleGetParams as RoleGetParams }; } export { type RolesV4PagePaginationArray }; //# sourceMappingURL=roles.d.ts.map