/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Role } from '../../../../yandex/cloud/iam/v1/role';
export declare const protobufPackage = "yandex.cloud.iam.v1";
export interface GetRoleRequest {
    /**
     * ID of the Role resource to return.
     * To get the role ID, use a [RoleService.List] request.
     */
    roleId: string;
}
export interface ListRolesRequest {
    /**
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListRolesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     */
    pageSize: number;
    /**
     * Page token. To get the next page of results, set [page_token]
     * to the [ListRolesResponse.next_page_token]
     * returned by a previous list request.
     */
    pageToken: string;
    /** A filter expression that filters resources listed in the response. */
    filter: string;
}
export interface ListRolesResponse {
    /** List of Role resources. */
    roles: Role[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListRolesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListRolesRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its own
     * [next_page_token] to continue paging through the results.
     */
    nextPageToken: string;
}
export declare const GetRoleRequest: {
    encode(message: GetRoleRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetRoleRequest;
    fromJSON(object: any): GetRoleRequest;
    toJSON(message: GetRoleRequest): unknown;
    fromPartial<I extends {
        roleId?: string | undefined;
    } & {
        roleId?: string | undefined;
    } & Record<Exclude<keyof I, "roleId">, never>>(object: I): GetRoleRequest;
};
export declare const ListRolesRequest: {
    encode(message: ListRolesRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesRequest;
    fromJSON(object: any): ListRolesRequest;
    toJSON(message: ListRolesRequest): unknown;
    fromPartial<I extends {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListRolesRequest>, never>>(object: I): ListRolesRequest;
};
export declare const ListRolesResponse: {
    encode(message: ListRolesResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesResponse;
    fromJSON(object: any): ListRolesResponse;
    toJSON(message: ListRolesResponse): unknown;
    fromPartial<I extends {
        roles?: {
            id?: string | undefined;
            description?: string | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        roles?: ({
            id?: string | undefined;
            description?: string | undefined;
        }[] & ({
            id?: string | undefined;
            description?: string | undefined;
        } & {
            id?: string | undefined;
            description?: string | undefined;
        } & Record<Exclude<keyof I["roles"][number], keyof Role>, never>)[] & Record<Exclude<keyof I["roles"], keyof {
            id?: string | undefined;
            description?: string | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListRolesResponse>, never>>(object: I): ListRolesResponse;
};
/** A set of methods for managing Role resources. */
export declare const RoleServiceService: {
    /**
     * Returns the specified Role resource.
     *
     * To get the list of available Role resources, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.iam.v1.RoleService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetRoleRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetRoleRequest;
        readonly responseSerialize: (value: Role) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Role;
    };
    /** Retrieves the list of Role resources. */
    readonly list: {
        readonly path: "/yandex.cloud.iam.v1.RoleService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListRolesRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListRolesRequest;
        readonly responseSerialize: (value: ListRolesResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListRolesResponse;
    };
};
export interface RoleServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the specified Role resource.
     *
     * To get the list of available Role resources, make a [List] request.
     */
    get: handleUnaryCall<GetRoleRequest, Role>;
    /** Retrieves the list of Role resources. */
    list: handleUnaryCall<ListRolesRequest, ListRolesResponse>;
}
export interface RoleServiceClient extends Client {
    /**
     * Returns the specified Role resource.
     *
     * To get the list of available Role resources, make a [List] request.
     */
    get(request: GetRoleRequest, callback: (error: ServiceError | null, response: Role) => void): ClientUnaryCall;
    get(request: GetRoleRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Role) => void): ClientUnaryCall;
    get(request: GetRoleRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Role) => void): ClientUnaryCall;
    /** Retrieves the list of Role resources. */
    list(request: ListRolesRequest, callback: (error: ServiceError | null, response: ListRolesResponse) => void): ClientUnaryCall;
    list(request: ListRolesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListRolesResponse) => void): ClientUnaryCall;
    list(request: ListRolesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListRolesResponse) => void): ClientUnaryCall;
}
export declare const RoleServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): RoleServiceClient;
    service: typeof RoleServiceService;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
