# Basic

## About Config

The config is kept as an object. In this way, it can be stored in a file in JSON format, but it prevents some advanced features from being used. It is recommended to use it as a javascript object to access all the features of Muninn.

```typescript
type Config = {
    [key: string]: Selector | SelectorConfig;
}
```

```typescript
type Selector = string;
```

```typescript
type SelectorConfig = {
  selector?: Selector;
  html?: boolean;
  attr?: string;
  type?: string;
  trim?: boolean;
  exist?: boolean;
  transform?: Function;
  arrayTransform?: Function;
  condition?: Function;
  methods?: string[];
  regex?: RegexConfig;
  initial?: any,
  fill?: any,
  schema?: {
    [key: string]: SelectorConfig;
  };
};
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wopehq.gitbook.io/muninn/config/basic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
