/** * A sorting direction. */ export declare enum ZSortDirection { /** * Ascending sort. */ Ascending = "asc", /** * Descending sort. */ Descending = "desc" } /** * Represents an option for sorting. */ export interface IZSort { /** * The subject to sort by. */ subject?: string; /** * The direction to sort. */ direction: ZSortDirection; } /** * Represents a builder for a sort list. */ export declare class ZSortBuilder { private _sort; /** * Initializes a new instance of this object. */ constructor(); /** * Sets all sorts. * * @param val - * The value to set. * * @returns * This object. */ sorts(val: IZSort[]): this; /** * Adds 1 or more sorts. * * @param val - * The value to concat to the sorts. * * @returns * This object. */ sort(val: IZSort | IZSort[]): this; /** * Adds an ascending order clause. * * @param subject - * The subject to sort by. * * @returns * This object */ ascending(subject?: string): this; /** * Adds a descending order clause. * * @param subject - * The subject to sort by. * * @returns * This object */ descending(subject?: string): this; /** * Returns the current sort state. * * @returns * The current sort state. */ build(): IZSort[]; } /** * A list of all sort directions. */ export declare const ZSortDirections: ZSortDirection[];