import { BOOLEAN, INTEGER, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { LDAPDN } from '../Lightweight-Directory-Access-Protocol-V3/LDAPDN.ta.mjs'; import { SearchRequest_scope, _enum_for_SearchRequest_scope } from '../Lightweight-Directory-Access-Protocol-V3/SearchRequest-scope.ta.mjs'; import { SearchRequest_derefAliases, _enum_for_SearchRequest_derefAliases } from '../Lightweight-Directory-Access-Protocol-V3/SearchRequest-derefAliases.ta.mjs'; import { Filter } from '../Lightweight-Directory-Access-Protocol-V3/Filter.ta.mjs'; import { AttributeSelection } from '../Lightweight-Directory-Access-Protocol-V3/AttributeSelection.ta.mjs'; /** * @summary SearchRequest * @description * * ### ASN.1 Definition: * * ```asn1 * SearchRequest ::= [APPLICATION 3] SEQUENCE { * baseObject LDAPDN, * scope * ENUMERATED {baseObject(0), singleLevel(1), wholeSubtree(2), ... * }, * derefAliases * ENUMERATED {neverDerefAliases(0), derefInSearching(1), * derefFindingBaseObj(2), derefAlways(3)}, * sizeLimit INTEGER(0..maxInt), * timeLimit INTEGER(0..maxInt), * typesOnly BOOLEAN, * filter Filter, * attributes AttributeSelection * } * ``` * */ export declare class SearchRequest { /** * @summary `baseObject`. * @public * @readonly */ readonly baseObject: LDAPDN; /** * @summary `scope`. * @public * @readonly */ readonly scope: SearchRequest_scope; /** * @summary `derefAliases`. * @public * @readonly */ readonly derefAliases: SearchRequest_derefAliases; /** * @summary `sizeLimit`. * @public * @readonly */ readonly sizeLimit: INTEGER; /** * @summary `timeLimit`. * @public * @readonly */ readonly timeLimit: INTEGER; /** * @summary `typesOnly`. * @public * @readonly */ readonly typesOnly: BOOLEAN; /** * @summary `filter`. * @public * @readonly */ readonly filter: Filter; /** * @summary `attributes`. * @public * @readonly */ readonly attributes: AttributeSelection; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `baseObject`. * @public * @readonly */ baseObject: LDAPDN, /** * @summary `scope`. * @public * @readonly */ scope: SearchRequest_scope, /** * @summary `derefAliases`. * @public * @readonly */ derefAliases: SearchRequest_derefAliases, /** * @summary `sizeLimit`. * @public * @readonly */ sizeLimit: INTEGER, /** * @summary `timeLimit`. * @public * @readonly */ timeLimit: INTEGER, /** * @summary `typesOnly`. * @public * @readonly */ typesOnly: BOOLEAN, /** * @summary `filter`. * @public * @readonly */ filter: Filter, /** * @summary `attributes`. * @public * @readonly */ attributes: AttributeSelection, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a SearchRequest * @description * * This takes an `object` and converts it to a `SearchRequest`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `SearchRequest`. * @returns {SearchRequest} */ static _from_object(_o: { [_K in keyof SearchRequest]: SearchRequest[_K]; }): SearchRequest; /** * @summary The enum used as the type of the component `scope` * @public * @static */ static _enum_for_scope: typeof _enum_for_SearchRequest_scope; /** * @summary The enum used as the type of the component `derefAliases` * @public * @static */ static _enum_for_derefAliases: typeof _enum_for_SearchRequest_derefAliases; } /** * @summary The Leading Root Component Types of SearchRequest * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_SearchRequest: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of SearchRequest * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_SearchRequest: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of SearchRequest * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_SearchRequest: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) SearchRequest * @function * @param {_Element} el The element being decoded. * @returns {SearchRequest} The decoded data structure. */ export declare function _decode_SearchRequest(el: _Element): SearchRequest; /** * @summary Encodes a(n) SearchRequest into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The SearchRequest, encoded as an ASN.1 Element. */ export declare function _encode_SearchRequest(value: SearchRequest, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=SearchRequest.ta.d.mts.map