import type { RallyLookbackStoreConfig, RallyModelName, RallyWSAPIStoreConfig, RallyError, RallyUrlRequestParams, RallyObject, RallyWSAPIModel, Objective, SettingFieldConfig, TypeDefinition, RallyCollection, Artifact, ArtifactType, RallyDataContext, EnvironmentConfig } from './rallySDKTypes.js'; export declare const initRallyApp: (appName?: string, options?: { defaultSettings: Record; settingsFields: SettingFieldConfig[]; }) => Promise; export declare const query: = Artifact>(modelName: RallyModelName, storeConfig?: RallyWSAPIStoreConfig) => Promise<(T & RallyWSAPIModel)[]>; export declare const queryLookback: (storeConfig?: RallyLookbackStoreConfig) => Promise; export declare const getCollection: (item: RallyObject, collectionName: string, storeConfig?: RallyWSAPIStoreConfig) => Promise[]>; export declare const getCollectionStore: (item: RallyWSAPIModel, collectionName: keyof T, storeConfig?: RallyWSAPIStoreConfig) => import("./rallySDKTypes.js").RallyStore; export declare const createFilter: (property: string, operator: string | undefined, value: boolean | string | number | (string | number)[] | null) => any; export declare const createSorter: (property: string, direction?: string) => any; /** * * New method to make requests to the Rally server. To replace urlRequest once it's deprecated */ export declare const request: (endpoint: string, options: { params?: RallyUrlRequestParams; method?: string; jsonData?: Record; }) => Promise; export declare const wrapRawDataInStore: (model: RallyWSAPIModel | ArtifactType, rawData: Record[]) => Promise; export declare const urlRequest: (endpoint: string, params?: RallyUrlRequestParams, method?: string) => Promise; export declare const buildUrl: (input: string) => string; export declare const getOidFromRef: (ref: string) => any; export declare const createDetailLink: (record: Record, opts?: {}) => any; /** * Returns an ExtJS Model for given modelName * * @param modelName - The name of the desired Model * @returns An ExtJS Model instance * */ export declare const getModel: (modelName: RallyModelName) => Promise; export declare const getModels: (modelNames: RallyModelName[]) => Promise>; export declare const createArtifact: (model: Record | RallyModelName, artifactData: Record) => Promise; /** * * @param options * @returns array of Portfolio Item Type Definitions, in order of lowest to highest in the hierarchy */ export declare const getPortfolioItemTypes: (options?: { fetch: string[] | true; }) => Promise; export declare const getObjectiveTypes: (config?: RallyWSAPIStoreConfig) => Promise; export declare const parseError: (e: string | RallyError, defaultMessage?: string) => string; export declare const showMessage: (msg: string, durationMs?: number) => void; export declare const showSuccess: (msg: string, durationMs?: number) => void; export declare const showWarning: (msg: string, durationMs?: number) => void; export declare const showError: (msg: string | RallyError, defaultMessage?: string, durationMs?: number) => string; export declare const setLoading: (msg: string | boolean) => void; export declare const getContext: () => import("./rallySDKTypes.js").Context; export declare const getDataContext: () => { workspace: string; project: string; projectScopeUp: boolean; projectScopeDown: boolean; }; export declare const getWorkspaceTimeZone: () => string; export declare const getWorkspaceConfiguration: () => { AutoUnblockPortfolioItem: boolean; BuildandChangesetEnabled: boolean; DateFormat: string; DateTimeFormat: string; DefaultTestCaseType: string; DefaultTestCaseVerdict: string; DragDropRankingEnabled: boolean; IterationEstimateUnitName: string; IterationLabelPlural: string; IterationLabelSingular: string; PpmUrl: string | undefined; ProjectLabelPlural: string; ProjectLabelSingular: string; PurgeRecycleBinAfterNumberOfDays: number; RelabelingConfigured: boolean; ReleaseEstimateUnitName: string; ReleaseLabelPlural: string; ReleaseLabelSingular: string; RestrictTimeboxEdit: boolean; TaskUnitName: string; TimeTrackerEnabled: boolean; TimeZone: string; WorkDays: string; _type: "WorkspaceConfiguration"; }; export declare const getHealthColorForPortfolioItem: (record: Record, percentDoneFieldName: string, useNewAlgorithm?: boolean) => { label: "Late"; color: "red"; hex: "#F66349"; } | { label: "On Track"; color: "green"; hex: "#8DC63F"; } | { label: "At Risk"; color: "yellow"; hex: "#FAD200"; } | { label: "Not Started"; color: "white"; hex: "#E0E0E0"; } | { label: "Complete"; color: "grey"; hex: "#D1D1D1"; } | { label: "Late" | "On Track" | "At Risk" | "Not Started" | "Complete"; hex: string; }; export declare const getHealthColorForObjective: (data: Objective, field: string, useNewAlgorithm?: boolean) => { label: "Late"; color: "red"; hex: "#F66349"; } | { label: "On Track"; color: "green"; hex: "#8DC63F"; } | { label: "At Risk"; color: "yellow"; hex: "#FAD200"; } | { label: "Not Started"; color: "white"; hex: "#E0E0E0"; } | { label: "Complete"; color: "grey"; hex: "#D1D1D1"; } | { label: "Late" | "On Track" | "At Risk" | "Not Started" | "Complete"; hex: string; }; export declare const getScopedStateId: (id: string) => string; export declare const getState: | string | number | boolean = Record>(id: string) => T | undefined; export declare const saveState: | string | number | boolean = Record>(id: string, state: T) => void; export declare const isRallyCollection: (a: unknown) => a is RallyCollection; export declare const isRallyRecord: (a: unknown) => a is T; export declare const getWorkspacePreference: (prefName: string, shouldParse?: boolean) => Promise; export declare const updateWorkspacePreference: (prefName: string, data: any, shouldStringify?: boolean) => Promise; export declare const deleteWorkspacePreference: (prefName: string) => void; export declare const decorateRallyObjects: >(objects: T | T[]) => T[]; export declare const modelIsArtifact: (model?: string) => model is ArtifactType; /** * Determine whether the current user is a project admin. projectRef defaults to user's current project if not provided. * @return {Boolean} True if the current user is a project admin */ export declare const isProjectAdmin: (projectRef?: string) => any; /** * Determine whether the current user is a workspace admin. workspaceRef defaults to user's current workspace if not provided. * @return {Boolean} True if the current user is a workspace admin */ export declare const isWorkspaceAdmin: (workspaceRef?: string) => any; /** * Determine whether the current user is a subscriptin admin * @return {Boolean} True if the current user is a subscription admin */ export declare const isSubscriptionAdmin: () => any; /** * Determine whether the current user is a subscription admin or workspace admin * @return {Boolean} True if the current user is a subscription admin, or workspace admin. */ export declare const isWorkspaceOrSubscriptionAdmin: (workspaceRef?: string) => any; type BatchOptions = { shared?: boolean; } & Partial; declare class Batch { data: { Entry: { Path: string; Method: string; Body?: Record; }; }[]; dataContext: RallyDataContext; options: BatchOptions; allowSharedDeleteFlag: boolean | undefined; constructor(options?: BatchOptions, dataContext?: { workspace: string; project: string; projectScopeUp: boolean; projectScopeDown: boolean; }); addEntry(path: string, method: string, body?: Record): this; addGet(path: string): this; addDelete(path: string): this; addPosts(batchPostConfigs: { path: string; body: Record; }[]): this; addPost(path: string, body: Record): this; addPut(path: string, body: Record): this; setAllowSharedDelete(isAllowed: boolean): void; send(): Promise<{ Results: T[]; PageSize: number; StartIndex: number; TotalResultCount: number; }[]>; size(): number; } export declare const createBatch: (options?: BatchOptions, dataContext?: { workspace: string; project: string; projectScopeUp: boolean; projectScopeDown: boolean; }) => Batch; export declare const getRecordType: >(record?: T) => string | undefined; export declare const getFeatureToggle: (feature: string) => boolean; export declare const getEnvironmentConfig: () => EnvironmentConfig | undefined; export {};