import { RequestInit } from 'undici'; export { Models } from './models.mjs'; export { Query, QueryTypes, QueryTypesList } from './query.mjs'; import './enums/database-type.mjs'; import './enums/attribute-status.mjs'; import './enums/column-status.mjs'; import './enums/index-status.mjs'; import './enums/deployment-status.mjs'; import './enums/execution-resource-type.mjs'; import './enums/execution-trigger.mjs'; import './enums/execution-status.mjs'; import './enums/project-auth-method-id.mjs'; import './enums/project-service-id.mjs'; import './enums/project-protocol-id.mjs'; import './enums/o-auth-2-google-prompt.mjs'; import './enums/o-auth-2-oidc-prompt.mjs'; import './enums/platform-type.mjs'; import './enums/proxy-rule-deployment-resource-type.mjs'; import './enums/proxy-rule-status.mjs'; import './enums/message-status.mjs'; import './enums/billing-plan-group.mjs'; type Payload = { [key: string]: any; }; type UploadProgress = { $id: string; progress: number; sizeUploaded: number; chunksTotal: number; chunksUploaded: number; }; type Headers = { [key: string]: string; }; declare class AppwriteException extends Error { code: number; response: string; type: string; constructor(message: string, code?: number, type?: string, response?: string); } declare class Client { static CHUNK_SIZE: number; private selfSignedAgent?; config: { endpoint: string; selfSigned: boolean; project: string; key: string; organization: string; jwt: string; bearer: string; locale: string; session: string; forwardeduseragent: string; devkey: string; cookie: string; impersonateuserid: string; impersonateuseremail: string; impersonateuserphone: string; }; headers: Headers; /** * Set Endpoint * * Your project endpoint * * @param {string} endpoint * * @returns {this} */ setEndpoint(endpoint: string): this; /** * Set self-signed * * @param {boolean} selfSigned * * @returns {this} */ setSelfSigned(selfSigned: boolean): this; /** * Add header * * @param {string} header * @param {string} value * * @returns {this} */ addHeader(header: string, value: string): this; /** * Get Headers * * Returns a copy of the current request headers, including any * authentication headers. Handle with care. * * @returns {Headers} */ getHeaders(): Headers; /** * Set Project * * Your project ID * * @param value string * * @return {this} */ setProject(value: string): this; /** * Set Key * * Your secret API key * * @param value string * * @return {this} */ setKey(value: string): this; /** * Set Organization * * Your organization ID * * @param value string * * @return {this} */ setOrganization(value: string): this; /** * Set JWT * * Your secret JSON Web Token * * @param value string * * @return {this} */ setJWT(value: string): this; /** * Set Bearer * * The OAuth access token to authenticate with * * @param value string * * @return {this} */ setBearer(value: string): this; /** * Set Locale * * @param value string * * @return {this} */ setLocale(value: string): this; /** * Set Session * * The user session to authenticate with * * @param value string * * @return {this} */ setSession(value: string): this; /** * Set ForwardedUserAgent * * The user agent string of the client that made the request * * @param value string * * @return {this} */ setForwardedUserAgent(value: string): this; /** * Set DevKey * * Your secret dev API key * * @param value string * * @return {this} */ setDevKey(value: string): this; /** * Set Cookie * * The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes. * * @param value string * * @return {this} */ setCookie(value: string): this; /** * Set ImpersonateUserId * * Impersonate a user by ID * * @param value string * * @return {this} */ setImpersonateUserId(value: string): this; /** * Set ImpersonateUserEmail * * Impersonate a user by email * * @param value string * * @return {this} */ setImpersonateUserEmail(value: string): this; /** * Set ImpersonateUserPhone * * Impersonate a user by phone * * @param value string * * @return {this} */ setImpersonateUserPhone(value: string): this; prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): { uri: string; options: RequestInit; }; chunkedUpload(method: string, url: URL, headers: Headers | undefined, originalPayload: Payload | undefined, onProgress: (progress: UploadProgress) => void): Promise; ping(): Promise; redirect(method: string, url: URL, headers?: Headers, params?: Payload): Promise; call(method: string, url: URL, headers?: Headers, params?: Payload, responseType?: string): Promise; static flatten(data: Payload, prefix?: string): Payload; } export { AppwriteException, Client, type Payload, type UploadProgress };