import { FormErrors, FormFieldsObj } from '@o/ui'; import { FunctionComponent } from 'react'; import { AppBit } from './AppBit'; import { ItemType } from './ItemType'; export declare type AppDefinition = { id: string; name: string; icon: string; iconLight?: string; iconColors?: string[]; itemType?: ItemType; app?: FunctionComponent>; settings?: FunctionComponent>; setup?: SetupFields; setupValidate?: (app: AppBit) => FormErrors> | Promise>; auth?: string; finishAuth?: (app: AppBit, authValues: any, oauthInfo: { credentials: { clientSecret: string; clientID: string; callbackURL?: string; }; }) => Promise>; workers?: AppWorker[]; api?: (app: AppBit) => any; graph?: (app: AppBit) => any; viewConfig?: { transparentBackground?: boolean; acceptsSearch?: boolean; }; views?: { [key: string]: any; }; itemViews?: { [key: string]: FunctionComponent; }; }; export declare type AppViewProps = { identifier?: string; id?: string; subId?: string; title?: string; subTitle?: string; data?: A; icon?: string; iconLight?: string; subType?: string; viewType?: 'main' | 'index' | 'setup' | 'settings'; }; export declare type AppWorker = () => any; //# sourceMappingURL=AppInterfaces.d.ts.map