| 1 |
import type { DescField, DescOneof } from "../descriptors.js"; |
| 2 |
export declare const unsafeLocal: unique symbol; |
| 3 |
/** |
| 4 |
* Return the selected field of a oneof group. |
| 5 |
* |
| 6 |
* @private |
| 7 |
*/ |
| 8 |
export declare function unsafeOneofCase(target: Record<string, any>, oneof: DescOneof): DescField | undefined; |
| 9 |
/** |
| 10 |
* Returns true if the field is set. |
| 11 |
* |
| 12 |
* @private |
| 13 |
*/ |
| 14 |
export declare function unsafeIsSet(target: Record<string, any>, field: DescField): boolean; |
| 15 |
/** |
| 16 |
* Returns true if the field is set, but only for singular fields with explicit |
| 17 |
* presence (proto2). |
| 18 |
* |
| 19 |
* @private |
| 20 |
*/ |
| 21 |
export declare function unsafeIsSetExplicit(target: object, localName: string): boolean; |
| 22 |
/** |
| 23 |
* Return a field value, respecting oneof groups. |
| 24 |
* |
| 25 |
* @private |
| 26 |
*/ |
| 27 |
export declare function unsafeGet(target: Record<string, unknown>, field: DescField): unknown; |
| 28 |
/** |
| 29 |
* Set a field value, respecting oneof groups. |
| 30 |
* |
| 31 |
* @private |
| 32 |
*/ |
| 33 |
export declare function unsafeSet(target: Record<string, unknown>, field: DescField, value: unknown): void; |
| 34 |
/** |
| 35 |
* Resets the field, so that unsafeIsSet() will return false. |
| 36 |
* |
| 37 |
* @private |
| 38 |
*/ |
| 39 |
export declare function unsafeClear(target: Record<string, any>, field: DescField): void; |