import { _SPCollection, _SPInstance } from "../spqueryable.js"; export declare class _Subscriptions extends _SPCollection { /** * Returns all the webhook subscriptions or the specified webhook subscription * * @param subscriptionId The id of a specific webhook subscription to retrieve, omit to retrieve all the webhook subscriptions */ getById(subscriptionId: string): ISubscription; /** * Creates a new webhook subscription * * @param notificationUrl The url to receive the notifications * @param expirationDate The date and time to expire the subscription in the form YYYY-MM-ddTHH:mm:ss+00:00 (maximum of 6 months) * @param clientState A client specific string (optional) */ add(notificationUrl: string, expirationDate: string, clientState?: string): Promise; } export interface ISubscriptions extends _Subscriptions { } export declare const Subscriptions: import("../spqueryable.js").ISPInvokableFactory; export declare class _Subscription extends _SPInstance { /** * Renews this webhook subscription * * @param expirationDate The date and time to expire the subscription in the form YYYY-MM-ddTHH:mm:ss+00:00 (maximum of 6 months, optional) * @param notificationUrl The url to receive the notifications (optional) * @param clientState A client specific string (optional) */ update(expirationDate?: string, notificationUrl?: string, clientState?: string): Promise; /** * Removes this webhook subscription * */ delete(): Promise; } export interface ISubscription extends _Subscription { } export declare const Subscription: import("../spqueryable.js").ISPInvokableFactory; /** * Result from adding a new subscription * */ export interface ISubscriptionAddResult { subscription: ISubscription; data: any; } /** * Result from updating a subscription * */ export interface ISubscriptionUpdateResult { subscription: ISubscription; data: any; } //# sourceMappingURL=types.d.ts.map