import { Fr } from '@aztec/foundation/curves/bn254'; import { inspect } from 'util'; /** A selector is the low 4 bytes of the poseidon2 hash of a signature. */ export declare abstract class Selector { value: number; /** The size of the selector in bytes. */ static SIZE: number; constructor(/** Value of the selector */ value: number); /** * Checks if the selector is empty (all bytes are 0). * @returns True if the selector is empty (all bytes are 0). */ isEmpty(): boolean; /** * Serialize as a buffer. * @param bufferSize - The buffer size. * @returns The buffer. */ toBuffer(bufferSize?: number): Buffer; /** * Serialize as a hex string. * @returns The string. */ toString(): string; [inspect.custom](): string; /** * Checks if this selector is equal to another. * @param other - The other selector. * @returns True if the selectors are equal. */ equals(other: Selector): boolean; /** * Returns a new field with the same contents as this EthAddress. * * @returns An Fr instance. */ toField(): Fr; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0b3IuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hYmkvc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBR3BELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFL0IsMEVBQTBFO0FBQzFFLDhCQUFzQixRQUFRO0lBSW9CLEtBQUssRUFBRSxNQUFNO0lBSDdELHlDQUF5QztJQUN6QyxPQUFjLElBQUksU0FBSztJQUV2QixZQUFZLDRCQUE0QixDQUFRLEtBQUssRUFBRSxNQUFNLEVBSTVEO0lBRUQ7OztPQUdHO0lBQ0ksT0FBTyxJQUFJLE9BQU8sQ0FFeEI7SUFFRDs7OztPQUlHO0lBQ0gsUUFBUSxDQUFDLFVBQVUsU0FBZ0IsR0FBRyxNQUFNLENBRTNDO0lBRUQ7OztPQUdHO0lBQ0gsUUFBUSxJQUFJLE1BQU0sQ0FFakI7SUFFRCxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsV0FFZjtJQUVEOzs7O09BSUc7SUFDSCxNQUFNLENBQUMsS0FBSyxFQUFFLFFBQVEsR0FBRyxPQUFPLENBRS9CO0lBRUQ7Ozs7T0FJRztJQUNJLE9BQU8sT0FFYjtDQUNGIn0=