import { SharePointQueryable, SharePointQueryableInstance, SharePointQueryableCollection } from "./sharepointqueryable"; import { TypedHash } from "../collections/collections"; /** * Describes a collection of user custom actions * */ export declare class UserCustomActions extends SharePointQueryableCollection { /** * Creates a new instance of the UserCustomActions class * * @param baseUrl The url or SharePointQueryable which forms the parent of this user custom actions collection */ constructor(baseUrl: string | SharePointQueryable, path?: string); /** * Returns the user custom action with the specified id * * @param id The GUID id of the user custom action to retrieve */ getById(id: string): UserCustomAction; /** * Creates a user custom action * * @param properties The information object of property names and values which define the new user custom action * */ add(properties: TypedHash): Promise; /** * Deletes all user custom actions in the collection * */ clear(): Promise; } /** * Describes a single user custom action * */ export declare class UserCustomAction extends SharePointQueryableInstance { /** * Updates this user custom action with the supplied properties * * @param properties An information object of property names and values to update for this user custom action */ update(properties: TypedHash): Promise; /** * Removes this user custom action * */ delete(): Promise; } /** * Result from adding a user custom action * */ export interface UserCustomActionAddResult { data: any; action: UserCustomAction; } /** * Result from udating a user custom action * */ export interface UserCustomActionUpdateResult { data: any; action: UserCustomAction; }