import { HttpStep } from '../../HttpStep.js';
export const IsNotEmptyAssertionKind = 'HttpAction#IsNotEmptyAssertion';
/**
 * An assertion that makes sure the input is empty (empty array, empty string, empty object - no properties)
 */
export class IsNotEmptyAssertion extends HttpStep {
    kind = IsNotEmptyAssertionKind;
    constructor(init) {
        super();
        if (typeof init === 'object') {
            this.new(init);
        }
    }
    new(init) {
        super.new(init);
        this.kind = IsNotEmptyAssertionKind;
    }
    checkValidity() {
        return true;
    }
    toJSON() {
        const result = {
            ...super.toJSON(),
            kind: IsNotEmptyAssertionKind,
        };
        return result;
    }
}
//# sourceMappingURL=IsNotEmptyAssertion.js.map