import * as z from "zod";
import { OpenEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type DocumentsFilesSearchRequestDto4 = {};
export type DocumentsFilesSearchRequestDtoSourceValue = DocumentsFilesSearchRequestDto4 | string | number | boolean | Array<any>;
/**
 * The operation type of the query
 */
export declare enum DocumentsFilesSearchRequestDtoValue {
    Contains = "contains",
    Equals = "equals",
    NotEquals = "not_equals",
    UnmappedValue = "unmapped_value"
}
/**
 * The operation type of the query
 */
export type DocumentsFilesSearchRequestDtoValueOpen = OpenEnum<typeof DocumentsFilesSearchRequestDtoValue>;
/**
 * The operation type to use for the query. If not provided, the default operation is `contains`.
 */
export type OperationType = {
    sourceValue?: DocumentsFilesSearchRequestDto4 | string | number | boolean | Array<any> | null | undefined;
    /**
     * The operation type of the query
     */
    value?: DocumentsFilesSearchRequestDtoValueOpen | null | undefined;
};
/**
 * Filter parameters that allow greater customisation of the list response
 */
export type Filter = {
    /**
     * Use a string with a date to only select results updated after that given date
     */
    updatedAfter?: string | null | undefined;
};
/**
 * The additional parameters of the query
 */
export type Params = {
    /**
     * The comma separated list of fields to return in the response (if empty, all fields are returned)
     */
    fields?: string | null | undefined;
    /**
     * Filter parameters that allow greater customisation of the list response
     */
    filter?: Filter | null | undefined;
    /**
     * The unified cursor
     */
    next?: string | null | undefined;
    /**
     * The page number of the results to fetch
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    page?: string | null | undefined;
    /**
     * The number of results per page (default value is 25)
     */
    pageSize?: string | null | undefined;
    /**
     * Indicates that the raw request result should be returned in addition to the mapped result (default value is false)
     */
    raw?: boolean | null | undefined;
    /**
     * Use a string with a date to only select results updated after that given date
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    updatedAfter?: string | null | undefined;
};
export type DocumentsFilesSearchRequestDto = {
    /**
     * The specific field to search within. If not provided, the search will be performed across all searchable text fields
     */
    field?: string | null | undefined;
    /**
     * The operation type to use for the query. If not provided, the default operation is `contains`.
     */
    operationType?: OperationType | null | undefined;
    /**
     * The additional parameters of the query
     */
    params?: Params | null | undefined;
    /**
     * Value to pass through to the provider
     */
    passthrough?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * The query to search for
     */
    query: string;
};
/** @internal */
export declare const DocumentsFilesSearchRequestDto4$inboundSchema: z.ZodType<DocumentsFilesSearchRequestDto4, z.ZodTypeDef, unknown>;
/** @internal */
export type DocumentsFilesSearchRequestDto4$Outbound = {};
/** @internal */
export declare const DocumentsFilesSearchRequestDto4$outboundSchema: z.ZodType<DocumentsFilesSearchRequestDto4$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDto4>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace DocumentsFilesSearchRequestDto4$ {
    /** @deprecated use `DocumentsFilesSearchRequestDto4$inboundSchema` instead. */
    const inboundSchema: z.ZodType<DocumentsFilesSearchRequestDto4, z.ZodTypeDef, unknown>;
    /** @deprecated use `DocumentsFilesSearchRequestDto4$outboundSchema` instead. */
    const outboundSchema: z.ZodType<DocumentsFilesSearchRequestDto4$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDto4>;
    /** @deprecated use `DocumentsFilesSearchRequestDto4$Outbound` instead. */
    type Outbound = DocumentsFilesSearchRequestDto4$Outbound;
}
export declare function documentsFilesSearchRequestDto4ToJSON(documentsFilesSearchRequestDto4: DocumentsFilesSearchRequestDto4): string;
export declare function documentsFilesSearchRequestDto4FromJSON(jsonString: string): SafeParseResult<DocumentsFilesSearchRequestDto4, SDKValidationError>;
/** @internal */
export declare const DocumentsFilesSearchRequestDtoSourceValue$inboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoSourceValue, z.ZodTypeDef, unknown>;
/** @internal */
export type DocumentsFilesSearchRequestDtoSourceValue$Outbound = DocumentsFilesSearchRequestDto4$Outbound | string | number | boolean | Array<any>;
/** @internal */
export declare const DocumentsFilesSearchRequestDtoSourceValue$outboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoSourceValue$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDtoSourceValue>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace DocumentsFilesSearchRequestDtoSourceValue$ {
    /** @deprecated use `DocumentsFilesSearchRequestDtoSourceValue$inboundSchema` instead. */
    const inboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoSourceValue, z.ZodTypeDef, unknown>;
    /** @deprecated use `DocumentsFilesSearchRequestDtoSourceValue$outboundSchema` instead. */
    const outboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoSourceValue$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDtoSourceValue>;
    /** @deprecated use `DocumentsFilesSearchRequestDtoSourceValue$Outbound` instead. */
    type Outbound = DocumentsFilesSearchRequestDtoSourceValue$Outbound;
}
export declare function documentsFilesSearchRequestDtoSourceValueToJSON(documentsFilesSearchRequestDtoSourceValue: DocumentsFilesSearchRequestDtoSourceValue): string;
export declare function documentsFilesSearchRequestDtoSourceValueFromJSON(jsonString: string): SafeParseResult<DocumentsFilesSearchRequestDtoSourceValue, SDKValidationError>;
/** @internal */
export declare const DocumentsFilesSearchRequestDtoValue$inboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoValueOpen, z.ZodTypeDef, unknown>;
/** @internal */
export declare const DocumentsFilesSearchRequestDtoValue$outboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoValueOpen, z.ZodTypeDef, DocumentsFilesSearchRequestDtoValueOpen>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace DocumentsFilesSearchRequestDtoValue$ {
    /** @deprecated use `DocumentsFilesSearchRequestDtoValue$inboundSchema` instead. */
    const inboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoValueOpen, z.ZodTypeDef, unknown>;
    /** @deprecated use `DocumentsFilesSearchRequestDtoValue$outboundSchema` instead. */
    const outboundSchema: z.ZodType<DocumentsFilesSearchRequestDtoValueOpen, z.ZodTypeDef, DocumentsFilesSearchRequestDtoValueOpen>;
}
/** @internal */
export declare const OperationType$inboundSchema: z.ZodType<OperationType, z.ZodTypeDef, unknown>;
/** @internal */
export type OperationType$Outbound = {
    source_value?: DocumentsFilesSearchRequestDto4$Outbound | string | number | boolean | Array<any> | null | undefined;
    value: string | null;
};
/** @internal */
export declare const OperationType$outboundSchema: z.ZodType<OperationType$Outbound, z.ZodTypeDef, OperationType>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace OperationType$ {
    /** @deprecated use `OperationType$inboundSchema` instead. */
    const inboundSchema: z.ZodType<OperationType, z.ZodTypeDef, unknown>;
    /** @deprecated use `OperationType$outboundSchema` instead. */
    const outboundSchema: z.ZodType<OperationType$Outbound, z.ZodTypeDef, OperationType>;
    /** @deprecated use `OperationType$Outbound` instead. */
    type Outbound = OperationType$Outbound;
}
export declare function operationTypeToJSON(operationType: OperationType): string;
export declare function operationTypeFromJSON(jsonString: string): SafeParseResult<OperationType, SDKValidationError>;
/** @internal */
export declare const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown>;
/** @internal */
export type Filter$Outbound = {
    updated_after?: string | null | undefined;
};
/** @internal */
export declare const Filter$outboundSchema: z.ZodType<Filter$Outbound, z.ZodTypeDef, Filter>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Filter$ {
    /** @deprecated use `Filter$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown>;
    /** @deprecated use `Filter$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Filter$Outbound, z.ZodTypeDef, Filter>;
    /** @deprecated use `Filter$Outbound` instead. */
    type Outbound = Filter$Outbound;
}
export declare function filterToJSON(filter: Filter): string;
export declare function filterFromJSON(jsonString: string): SafeParseResult<Filter, SDKValidationError>;
/** @internal */
export declare const Params$inboundSchema: z.ZodType<Params, z.ZodTypeDef, unknown>;
/** @internal */
export type Params$Outbound = {
    fields?: string | null | undefined;
    filter?: Filter$Outbound | null | undefined;
    next?: string | null | undefined;
    page?: string | null | undefined;
    page_size?: string | null | undefined;
    raw?: boolean | null | undefined;
    updated_after?: string | null | undefined;
};
/** @internal */
export declare const Params$outboundSchema: z.ZodType<Params$Outbound, z.ZodTypeDef, Params>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Params$ {
    /** @deprecated use `Params$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Params, z.ZodTypeDef, unknown>;
    /** @deprecated use `Params$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Params$Outbound, z.ZodTypeDef, Params>;
    /** @deprecated use `Params$Outbound` instead. */
    type Outbound = Params$Outbound;
}
export declare function paramsToJSON(params: Params): string;
export declare function paramsFromJSON(jsonString: string): SafeParseResult<Params, SDKValidationError>;
/** @internal */
export declare const DocumentsFilesSearchRequestDto$inboundSchema: z.ZodType<DocumentsFilesSearchRequestDto, z.ZodTypeDef, unknown>;
/** @internal */
export type DocumentsFilesSearchRequestDto$Outbound = {
    field?: string | null | undefined;
    operation_type?: OperationType$Outbound | null | undefined;
    params?: Params$Outbound | null | undefined;
    passthrough?: {
        [k: string]: any;
    } | null | undefined;
    query: string;
};
/** @internal */
export declare const DocumentsFilesSearchRequestDto$outboundSchema: z.ZodType<DocumentsFilesSearchRequestDto$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDto>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace DocumentsFilesSearchRequestDto$ {
    /** @deprecated use `DocumentsFilesSearchRequestDto$inboundSchema` instead. */
    const inboundSchema: z.ZodType<DocumentsFilesSearchRequestDto, z.ZodTypeDef, unknown>;
    /** @deprecated use `DocumentsFilesSearchRequestDto$outboundSchema` instead. */
    const outboundSchema: z.ZodType<DocumentsFilesSearchRequestDto$Outbound, z.ZodTypeDef, DocumentsFilesSearchRequestDto>;
    /** @deprecated use `DocumentsFilesSearchRequestDto$Outbound` instead. */
    type Outbound = DocumentsFilesSearchRequestDto$Outbound;
}
export declare function documentsFilesSearchRequestDtoToJSON(documentsFilesSearchRequestDto: DocumentsFilesSearchRequestDto): string;
export declare function documentsFilesSearchRequestDtoFromJSON(jsonString: string): SafeParseResult<DocumentsFilesSearchRequestDto, SDKValidationError>;
//# sourceMappingURL=documentsfilessearchrequestdto.d.ts.map