/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as WorkOS from "../../.."; export declare namespace DirectoryGroups { interface Options { environment?: core.Supplier; authorizationToken?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class DirectoryGroups { protected readonly _options: DirectoryGroups.Options; constructor(_options?: DirectoryGroups.Options); /** * Get a list of all of existing directory groups matching the criteria specified * @throws {@link WorkOS.ForbiddenError} * @throws {@link WorkOS.NotFoundError} * @throws {@link WorkOS.UnprocessableEntityError} * * @example * await workOs.directoryGroups.list({ * limit: 10, * order: WorkOS.Order.Normal * }) */ list(request?: WorkOS.ListDirectoryGroupsOpts, requestOptions?: DirectoryGroups.RequestOptions): Promise>; /** * Get the details of an existing Directory Group * @throws {@link WorkOS.ForbiddenError} * @throws {@link WorkOS.NotFoundError} * * @example * await workOs.directoryGroups.get("string") */ get(id: string, requestOptions?: DirectoryGroups.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }