import { editor } from 'monaco-editor';
import { default as PortalItem } from '@arcgis/core/portal/PortalItem';
type KeysOfType<T, U> = {
    [P in keyof T]: T[P] extends U ? P : never;
}[keyof T];
/**
 * Filters a collection of items by the given keys and filter word.
 */
export declare function filterCollection<T, U extends KeysOfType<T, string | undefined>>(collection: T[], keys: U | U[], filterWord: string, beforeFilteringFn?: (item: T) => boolean | undefined): T[];
/**
 * Returns the url to the portal item.
 */
export declare function portalItemPageUrl(portalItem: PortalItem | null | undefined): string;
export declare function editModel(editorInstance: editor.IStandaloneCodeEditor | undefined, script: string, insertMode?: "add" | "replace", disclaimer?: string): void;
export declare function formatResult(script: string): string;
export {};
