import * as grpcWeb from 'grpc-web'; import * as common_search$criteria_pb from '../common/search-criteria_pb'; import * as common_search$pagination_pb from '../common/search-pagination_pb'; import * as common_search$sort_pb from '../common/search-sort_pb'; import * as user_user_pb from '../user/user_pb'; import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, ReadAllUsersRequest, ReadAllUsersResponse, ReadUserByIdRequest, ReadUserByUsernameRequest, ReadUserResponse, UpdateUserRequest, UpdateUserResponse} from './user-service_pb'; export class UserServiceClient { constructor (hostname: string, credentials: null | { [index: string]: string; }, options: null | { [index: string]: string; }); createUser( request: CreateUserRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: CreateUserResponse) => void ): grpcWeb.ClientReadableStream; readUserById( request: ReadUserByIdRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: ReadUserResponse) => void ): grpcWeb.ClientReadableStream; readUserByUsername( request: ReadUserByUsernameRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: ReadUserResponse) => void ): grpcWeb.ClientReadableStream; updateUser( request: UpdateUserRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: UpdateUserResponse) => void ): grpcWeb.ClientReadableStream; deleteUser( request: DeleteUserRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: DeleteUserResponse) => void ): grpcWeb.ClientReadableStream; readAllUsers( request: ReadAllUsersRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.Error, response: ReadAllUsersResponse) => void ): grpcWeb.ClientReadableStream; } export class UserServicePromiseClient { constructor (hostname: string, credentials: null | { [index: string]: string; }, options: null | { [index: string]: string; }); createUser( request: CreateUserRequest, metadata?: grpcWeb.Metadata ): Promise; readUserById( request: ReadUserByIdRequest, metadata?: grpcWeb.Metadata ): Promise; readUserByUsername( request: ReadUserByUsernameRequest, metadata?: grpcWeb.Metadata ): Promise; updateUser( request: UpdateUserRequest, metadata?: grpcWeb.Metadata ): Promise; deleteUser( request: DeleteUserRequest, metadata?: grpcWeb.Metadata ): Promise; readAllUsers( request: ReadAllUsersRequest, metadata?: grpcWeb.Metadata ): Promise; }