import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as FiltersAPI from 'cloudflare/resources/filters';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';
export declare class Filters extends APIResource {
    /**
     * Creates one or more filters.
     */
    create(zoneIdentifier: string, body: FilterCreateParams, options?: Core.RequestOptions): Core.APIPromise<FilterCreateResponse | null>;
    /**
     * Updates an existing filter.
     */
    update(zoneIdentifier: string, id: string, body: FilterUpdateParams, options?: Core.RequestOptions): Core.APIPromise<LegacyJhsFilter | null>;
    /**
     * Fetches filters in a zone. You can filter the results using several optional
     * parameters.
     */
    list(zoneIdentifier: string, query?: FilterListParams, options?: Core.RequestOptions): Core.PagePromise<LegacyJhsFiltersV4PagePaginationArray, LegacyJhsFilter>;
    list(zoneIdentifier: string, options?: Core.RequestOptions): Core.PagePromise<LegacyJhsFiltersV4PagePaginationArray, LegacyJhsFilter>;
    /**
     * Deletes an existing filter.
     */
    delete(zoneIdentifier: string, id: string, options?: Core.RequestOptions): Core.APIPromise<LegacyJhsFilter | null>;
    /**
     * Fetches the details of a filter.
     */
    get(zoneIdentifier: string, id: string, options?: Core.RequestOptions): Core.APIPromise<LegacyJhsFilter | null>;
}
export declare class LegacyJhsFiltersV4PagePaginationArray extends V4PagePaginationArray<LegacyJhsFilter> {
}
export interface LegacyJhsFilter {
    /**
     * The unique identifier of the filter.
     */
    id?: string;
    /**
     * An informative summary of the filter.
     */
    description?: string;
    /**
     * The filter expression. For more information, refer to
     * [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).
     */
    expression?: string;
    /**
     * When true, indicates that the filter is currently paused.
     */
    paused?: boolean;
    /**
     * A short reference tag. Allows you to select related filters.
     */
    ref?: string;
}
export type FilterCreateResponse = Array<LegacyJhsFilter>;
export type FilterCreateParams = unknown;
export type FilterUpdateParams = unknown;
export interface FilterListParams extends V4PagePaginationArrayParams {
    /**
     * A case-insensitive string to find in the description.
     */
    description?: string;
    /**
     * A case-insensitive string to find in the expression.
     */
    expression?: string;
    /**
     * When true, indicates that the filter is currently paused.
     */
    paused?: boolean;
    /**
     * The filter ref (a short reference tag) to search for. Must be an exact match.
     */
    ref?: string;
}
export declare namespace Filters {
    export import LegacyJhsFilter = FiltersAPI.LegacyJhsFilter;
    export import FilterCreateResponse = FiltersAPI.FilterCreateResponse;
    export import LegacyJhsFiltersV4PagePaginationArray = FiltersAPI.LegacyJhsFiltersV4PagePaginationArray;
    export import FilterCreateParams = FiltersAPI.FilterCreateParams;
    export import FilterUpdateParams = FiltersAPI.FilterUpdateParams;
    export import FilterListParams = FiltersAPI.FilterListParams;
}
//# sourceMappingURL=filters.d.ts.map