import { NativeArray } from "../imports/NativeArray.js"; import { NativeObject } from "../imports/NativeObject.js"; import { Scriptable } from "../imports/Scriptable.js"; import { GlideElement } from "./GlideElement.js"; import { GlideRecord } from "./GlideRecord.js"; export declare class GlideSPScriptable { constructor(); constructor(portalID: string); getPortalRecord(): GlideRecord; getRecord(): GlideRecord; getRecord(table: string, sys_id: string, applyDataFilters?: boolean): GlideRecord; getRecord(table: string, ge: GlideElement): GlideRecord; getWidgetParameters(): Scriptable; getValue(name: string): any; getDisplayValue(name: string): string; getValues(data: Scriptable, names?: string): void; getRecordValues(data: Scriptable, from: GlideRecord, names: string): void; getRecordDisplayValues(data: Scriptable, from: GlideRecord, names: string): void; getRecordElements(from: GlideRecord, names: string): NativeObject; getRecordElements(data: Scriptable, from: GlideRecord, names: string): void; getWidgetScope(instanceID: string): Scriptable; getWidgetFromInstance(instanceID: string): Scriptable; getWidgetFromRectangle(instanceID: string): Scriptable; getWidget(widgetID: string, widgetParams?: any): Scriptable; getRelatedList(tableName: string, foreignKey: string): NativeArray; getParameter(name: string): any; getVariables(includeNilResponses?: boolean): string; getRecordVariables(gr: GlideRecord, includeNilResponses?: boolean): string; getVariablesArray(includeNilResponses?: boolean): Scriptable; getRecordVariablesArray(gr: GlideRecord, includeNilResponses?: boolean): Scriptable; getStreamEntries(): string; getStream(): Scriptable; getStream(table: string, sys_id: string): Scriptable; getListColumns(tableName: string, view?: string): Scriptable; getUserInitials(): string; getField(gr: GlideRecord, name: string): Scriptable; getFields(gr: GlideRecord, names: string): Scriptable; getFieldsObject(gr: GlideRecord, names: string): Scriptable; getFilterBreadcrumbs(table: string, query: string, fixedQuery: string): NativeArray; static logStat(type: string, table: string, id: string, text?: string, portalId?: string): void; static logSearch(table: string, terms: string, count: number, searchType?: string, portal?: string, page?: string): void; static canSeePage(pageID: string): boolean; canReadRecord(gr: GlideRecord): boolean; canReadRecord(table: string, id: string): boolean; getCatalogItem(data: Scriptable): Scriptable; getCatalogItem(itemID: string, isOrdering?: boolean, tableName?: string): Scriptable; getGuide(itemID: string, isOrdering: boolean, addIncludedItems: boolean): Scriptable; getForm(table: string, sys_id: string, encodedQuery?: string, view?: string, isPopup?: boolean, includeScripts?: boolean): Scriptable; saveRecord(table: string, sys_id: string, model: Scriptable): Scriptable; saveVariables(table: string, sys_id: string, model: Scriptable): Scriptable; getKBCategoryArticles(category: string, limit?: number): Scriptable; getKBCategoryArticleSummaries(category: string, limit: number, maxChars: number): Scriptable; getKBCategoryArticleSummary(category: string, limit: number, maxChars: number): Scriptable; getKBSiblingCategories(catID: string): GlideRecord; getKBCount(kbIDs: string): number; getSubCategories(catId: string): GlideRecord; getKBTopCategoryID(catId: string): string; getKBRecord(): GlideRecord; getAllKBRecords(kbIDs: string): GlideRecord; getSCRecord(): GlideRecord; stripHTML(html: string): Scriptable; getMenuItems(sys_id: string): Scriptable; getMenuHREF(gr: GlideRecord): Scriptable; getInstanceRecord(): GlideRecord; buildThemeVariableModel(portalId: string, names: string): Scriptable; getWidgetSysId(): string; getTaxonomies(): string; getAssessmentRecord(assessmentId: string, typeId: string, data: Scriptable): Scriptable; getSPVlistActions(sysId: string): Array; getAnnouncementConsumerType(typeIds: string[]): Record; getUserTrackingDetails(): any; hasPublicAccessToTable(table: string, widgetOptions: any, widgetInput: any): boolean; getUiScriptsVersionMap(): string; getSearchApplicationConfigForNASSEnabledPortal(): string; shouldUseESLatest(tableName: string, sysId: string): boolean; getUserPreferredChannels(): string; hasTextIndex(tableName: string): boolean; isAISearchEnabled(): boolean; isChatAssistantEnabled(): boolean; isDarkThemeEnabledInPortal(): boolean; isDynamicChatAssistantEnabled(): boolean; isNowAssistEnabled(): boolean; isRTLEnabled(): boolean; isServicePortalURL(inputURL: string): boolean; isUserCriteriaEnabled(): boolean; log(message: any): void; mapUrlToSPUrl(url: string): string; portalHasChatConfig(portalId: string): boolean; publishSearchAnalytics(payloadString: string): void; showCatalogPrices(): boolean; showPrice(price: number): boolean; showRecurringPrice(price: number, freq: string): boolean; translateTemplate(input: string): string; userCanSeeSearchSourceByCriteria(searchSourceID: string): boolean; } //# sourceMappingURL=GlideSPScriptable.d.ts.map